]> git.baikalelectronics.ru Git - kernel.git/commit
HID: Do not discard truncated input reports
authorAdam Kropelin <akropel1@rochester.rr.com>
Thu, 5 Apr 2007 14:06:30 +0000 (16:06 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 5 Apr 2007 14:06:30 +0000 (16:06 +0200)
commitafcebdd25fad9820d8a3b255c0bfbc750900b4a6
treec5880b16a78508706d70a54ceb2ee0d2960ea7e4
parent6981c1cbdbfa83468f9df4eaa5fd452da66e8d0b
HID: Do not discard truncated input reports

Truncated reports should not be discarded since it prevents buggy
devices from communicating with userspace.

Prior to the regession introduced in 2.6.20, a shorter-than-expected
report in hid_input_report() was passed thru after having the missing
bytes cleared. This behavior was established over a few patches in the
2.6.early-teens days, including commit
a2a7425c54c63019511b7f05a4089bb1c2511eee.

This patch restores the previous behavior and fixes the regression.

Signed-off-by: Adam Kropelin <akropel1@rochester.rr.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c