• Adam Kropelin's avatar
    HID: Do not discard truncated input reports · 8da7d1ba
    Adam Kropelin authored
    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
    cd610457.
    
    This patch restores the previous behavior and fixes the regression.
    Signed-off-by: default avatarAdam Kropelin <akropel1@rochester.rr.com>
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    8da7d1ba
hid-core.c 23.8 KB