linux/drivers/hid/usbhid
Tomasz Pakuła d1edc027a4 HID: pidff: Fix condition effect bit clearing
commit 97d5c8f5c0 upstream.

As reported by MPDarkGuy on discord, NULL pointer dereferences were
happening because not all the conditional effects bits were cleared.

Properly clear all conditional effect bits from ffbit

Fixes: 7f3d7bc0df ("HID: pidff: Better quirk assigment when searching for fields")
Cc: stable@vger.kernel.org # 6.18.x
Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-03-12 07:09:36 -04:00
..
hid-core.c HID: usbhid: paper over wrong bNumDescriptor field 2026-01-23 11:21:23 +01:00
hid-pidff.c HID: pidff: Fix condition effect bit clearing 2026-03-12 07:09:36 -04:00
hid-pidff.h HID: pidff: Use direction fix only for conditional effects 2025-08-15 15:58:01 +02:00
hiddev.c USB: make devnode() callback in usb_class_driver take a const * 2022-10-20 12:11:56 +02:00
Kconfig HID: intel-thc: fix CONFIG_HID dependency 2025-02-03 10:56:43 +01:00
Makefile HID: core: move the dynamic quirks handling in core 2017-11-21 11:14:48 +01:00
usbhid.h Revert "HID: usbhid: do not sleep when opening device" 2020-08-18 19:54:04 +02:00
usbkbd.c HID: usbkbd: Fix the bit shift number for LED_KANA 2025-02-03 22:52:47 +01:00
usbmouse.c HID: move from strlcpy with unused retval to strscpy 2022-08-25 11:44:27 +02:00