]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: intel-hid: fix _DSM function index handling
authorMichael Niewöhner <linux@mniewoehner.de>
Tue, 17 May 2022 18:31:30 +0000 (20:31 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 19 May 2022 17:38:48 +0000 (19:38 +0200)
commite4b89a955f3998ce08bb25d32f4ccf37b544ba50
treef348dd39e0dedb3fe579e3f22c713e22f2cd2334
parent9bbedac6cd22661ccc28787a7c88aecb8942f394
platform/x86: intel-hid: fix _DSM function index handling

intel_hid_dsm_fn_mask is a bit mask containing one bit for each function
index. Fix the function index check in intel_hid_evaluate_method
accordingly, which was missed in commit 56641e88308d ("platform/x86:
intel-hid: fix _DSM function index handling").

Fixes: 56641e88308d ("platform/x86: intel-hid: fix _DSM function index handling")
Cc: stable@vger.kernel.org
Signed-off-by: Michael Niewöhner <linux@mniewoehner.de>
Link: https://lore.kernel.org/r/66f813f5bcc724a0f6dd5adefe6a9728dbe509e3.camel@mniewoehner.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/hid.c