Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15117
b: refs/heads/master
c: cd61045
h: refs/heads/master
i:
  15115: 36b5f0e
v: v3
  • Loading branch information
Adam Kropelin authored and Linus Torvalds committed Dec 14, 2005
1 parent beaf9d0 commit 2604825
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb79ffa4ddbe3f6f30fdb8429b5bad84d25ae6ef
refs/heads/master: cd6104572bca9e4afe0dcdb8ecd65ef90b01297b
4 changes: 3 additions & 1 deletion trunk/drivers/usb/input/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,8 +893,10 @@ static int hid_input_report(int type, struct urb *urb, int interrupt, struct pt_

size = ((report->size - 1) >> 3) + 1;

if (len < size)
if (len < size) {
dbg("report %d is too short, (%d < %d)", report->id, len, size);
memset(data + len, 0, size - len);
}

if (hid->claimed & HID_CLAIMED_HIDDEV)
hiddev_report_event(hid, report);
Expand Down

0 comments on commit 2604825

Please sign in to comment.