linux-stable/drivers/hid/amd-sfh-hid
Basavaraj Natikar 3738666988 HID: amd_sfh: Fix max supported HID devices
commit 4bd763568d ("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: 4bd763568d ("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>
2023-04-25 10:58:28 +02:00
..
hid_descriptor HID: amd_sfh: Support for additional light sensor 2023-04-13 15:57:14 +02:00
sfh1_1 HID: amd_sfh: Handle "no sensors" enabled for SFH1.1 2023-04-13 15:55:22 +02:00
amd_sfh_client.c HID: amd_sfh: Support for additional light sensor 2023-04-13 15:57:14 +02:00
amd_sfh_common.h HID: amd_sfh: Implement SFH1.1 functionality 2022-07-21 13:44:04 +02:00
amd_sfh_hid.c HID: amd_sfh: Constify lowlevel HID driver 2023-02-06 15:08:44 +01:00
amd_sfh_hid.h HID: amd_sfh: Fix max supported HID devices 2023-04-25 10:58:28 +02:00
amd_sfh_pcie.c HID: amd_sfh: Support for additional light sensor 2023-04-13 15:57:14 +02:00
amd_sfh_pcie.h HID: amd_sfh: Support for additional light sensor 2023-04-13 15:57:14 +02:00
Kconfig HID: stop drivers from selecting CONFIG_HID 2023-01-18 16:14:04 +01:00
Makefile HID: amd_sfh: Implement SFH1.1 functionality 2022-07-21 13:44:04 +02:00