]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita0badf2946f6cd2ff1066839d166843d6f00a8af
tree7ec325fbcec0fe90bdc061f5ae7e027f1fc61675
parent52e8fae5afe4aedc6eb2d3c134924c6561acbaf8
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: ae8c5ee5cdaa ("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