Skip to content
Commit 3f375270 authored by Valtteri Heikkilä's avatar Valtteri Heikkilä Committed by Jiri Kosina
Browse files

HID: reject input outside logical range only if null state is set

This patch fixes an issue in drivers/hid/hid-input.c where USB HID
control null state flag is not checked upon rejecting inputs outside
logical minimum-maximum range. The check should be made according to USB
HID specification 1.11, section 6.2.2.5, p.31. The fix will resolve
issues with some game controllers, such as:
https://bugzilla.kernel.org/show_bug.cgi?id=68621



[tk@the-tk.com: shortened and fixed spelling in commit message]
Signed-off-by: default avatarValtteri Heikkilä <rnd@nic.fi>
Signed-off-by: default avatarTomasz Kramkowski <tk@the-tk.com>
Acked-By: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 81bbef23
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment