platform/x86: sony-laptop: Make resuming thermal profile safer
authorMattia Dongili <malattia@linux.it>
Fri, 8 May 2020 00:14:05 +0000 (09:14 +0900)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 12 May 2020 14:27:11 +0000 (17:27 +0300)
commit476d60b1b4c8a2b14a53ef9b772058f35e604661
tree7ec325fbcec0fe90bdc061f5ae7e027f1fc61675
parent47828d22539f76c8c9dcf2a55f18ea3a8039d8ef
platform/x86: sony-laptop: Make resuming thermal profile safer

The thermal handle object may fail initialization when the module is
loaded in the first place. Avoid attempting to use it on resume then.

Fixes: 6d232b29cfce ("ACPICA: Dispatcher: always generate buffer objects for ASL create_field() operator")
Reported-by: Dominik Mierzejewski <dominik@greysector.net>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=207491
Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/sony-laptop.c