]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: thinkpad_acpi: re-initialize ACPI buffer size when reuse
authorAaron Ma <aaron.ma@canonical.com>
Fri, 2 Oct 2020 17:09:16 +0000 (01:09 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 5 Oct 2020 09:20:42 +0000 (12:20 +0300)
commita6063e95d45434ab70aeb58b251edcaf941844a6
tree483c869ff06cfeed8ecd40b450f0ee87f481b407
parent0b81fda3f5fcba33a5c0a5fd952172f53a7cdb80
platform/x86: thinkpad_acpi: re-initialize ACPI buffer size when reuse

Evaluating ACPI _BCL could fail, then ACPI buffer size will be set to 0.
When reuse this ACPI buffer, AE_BUFFER_OVERFLOW will be triggered.

Re-initialize buffer size will make ACPI evaluate successfully.

Fixes: 8a76c945b13b1 ("thinkpad-acpi: fix handle locate for video and query of _BCL")
Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c