mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
platform/x86: intel-hid: fix _DSM function index handling
commit1620c80bba
upstream. 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 commit97ab451620
("platform/x86: intel-hid: fix _DSM function index handling"). Fixes:97ab451620
("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6aeeabf2c3
commit
22edc30cc7
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ static bool intel_hid_evaluate_method(acpi_handle handle,
|
|||
|
||||
method_name = (char *)intel_hid_dsm_fn_to_method[fn_index];
|
||||
|
||||
if (!(intel_hid_dsm_fn_mask & fn_index))
|
||||
if (!(intel_hid_dsm_fn_mask & BIT(fn_index)))
|
||||
goto skip_dsm_eval;
|
||||
|
||||
obj = acpi_evaluate_dsm_typed(handle, &intel_dsm_guid,
|
||||
|
|
Loading…
Add table
Reference in a new issue