Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248541
b: refs/heads/master
c: 966922f
h: refs/heads/master
i:
  248539: f45c154
v: v3
  • Loading branch information
Armando Visconti authored and Jiri Kosina committed May 20, 2011
1 parent 9608c53 commit 9c89701
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fdc6807fcd09416c5537f479e1dcd624118e234c
refs/heads/master: 966922f26c7fb5eddbe3c506b66bb5659f57b76f
3 changes: 3 additions & 0 deletions trunk/drivers/hid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,9 @@ void hid_report_raw_event(struct hid_device *hid, int type, u8 *data, int size,

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

if (rsize > HID_MAX_BUFFER_SIZE)
rsize = HID_MAX_BUFFER_SIZE;

if (csize < rsize) {
dbg_hid("report %d is too short, (%d < %d)\n", report->id,
csize, rsize);
Expand Down

0 comments on commit 9c89701

Please sign in to comment.