From: Adam Kropelin Date: Thu, 5 Apr 2007 14:06:30 +0000 (+0200) Subject: HID: Do not discard truncated input reports X-Git-Tag: v2.6.21-rc7~30^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8da7d1bae512aee155ef02f7ab1266358842e1fd;p=pandora-kernel.git 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 cd6104572bca9e4afe0dcdb8ecd65ef90b01297b. This patch restores the previous behavior and fixes the regression. Signed-off-by: Adam Kropelin Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed