diff options
author | Valtteri Heikkilä <rnd@nic.fi> | 2017-02-15 00:14:32 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-03-06 14:02:37 +0100 |
commit | 3f3752705dbd50b66b66ad7b4d54fe33d2f746ed (patch) | |
tree | 9e7627aebcaa91d143db8d3cd11b3a44fa913946 /drivers/hid/usbhid | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik... (diff) | |
download | linux-3f3752705dbd50b66b66ad7b4d54fe33d2f746ed.tar.xz linux-3f3752705dbd50b66b66ad7b4d54fe33d2f746ed.zip |
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: Valtteri Heikkilä <rnd@nic.fi>
Signed-off-by: Tomasz Kramkowski <tk@the-tk.com>
Acked-By: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/usbhid')
0 files changed, 0 insertions, 0 deletions