aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index e8387cb95d7f..62e21cc73938 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -974,7 +974,7 @@ int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int i
974 974
975 if (size < rsize) { 975 if (size < rsize) {
976 dbg("report %d is too short, (%d < %d)", report->id, size, rsize); 976 dbg("report %d is too short, (%d < %d)", report->id, size, rsize);
977 return -1; 977 memset(data + size, 0, rsize - size);
978 } 978 }
979 979
980 if ((hid->claimed & HID_CLAIMED_HIDDEV) && hid->hiddev_report_event) 980 if ((hid->claimed & HID_CLAIMED_HIDDEV) && hid->hiddev_report_event)