Skip to content

Commit 3738666

Browse files
basuamdbentiss
authored andcommitted
HID: amd_sfh: Fix max supported HID devices
commit 4bd7635 ("HID: amd_sfh: Support for additional light sensor") adds additional sensor devices, but forgets to add the number of HID devices to match. Thus, the number of HID devices does not match the actual number of sensors. In order to prevent corruption and system hangs when more than the allowed number of HID devices are accessed, the number of HID devices is increased accordingly. Fixes: 4bd7635 ("HID: amd_sfh: Support for additional light sensor") Link: https://bugzilla.kernel.org/show_bug.cgi?id=217354 Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com> Link: https://lore.kernel.org/r/20230424160406.2579888-1-Basavaraj.Natikar@amd.com Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
1 parent 4bd7635 commit 3738666

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hid/amd-sfh-hid/amd_sfh_hid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef AMDSFH_HID_H
1212
#define AMDSFH_HID_H
1313

14-
#define MAX_HID_DEVICES 5
14+
#define MAX_HID_DEVICES 6
1515
#define AMD_SFH_HID_VENDOR 0x1022
1616
#define AMD_SFH_HID_PRODUCT 0x0001
1717

0 commit comments

Comments
 (0)