Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316898
b: refs/heads/master
c: 560f118
h: refs/heads/master
v: v3
  • Loading branch information
Koen Beel authored and Felipe Balbi committed Jun 4, 2012
1 parent 1ef7083 commit 62da028
Show file tree
Hide file tree
Showing 2 changed files with 8 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: d3c568c302ed0e3b2d51f0335f304ca4d85de54b
refs/heads/master: 560f1187990c6c548756bf2f1183aa19d9c97413
7 changes: 7 additions & 0 deletions trunk/drivers/usb/gadget/f_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/blkdev.h>
#include <linux/pagemap.h>
#include <linux/export.h>
#include <linux/hid.h>
#include <asm/unaligned.h>

#include <linux/usb/composite.h>
Expand Down Expand Up @@ -1671,6 +1672,12 @@ static int __must_check ffs_do_desc(char *data, unsigned len,
}
break;

case HID_DT_HID:
pr_vdebug("hid descriptor\n");
if (length != sizeof(struct hid_descriptor))
goto inv_length;
break;

case USB_DT_OTG:
if (length != sizeof(struct usb_otg_descriptor))
goto inv_length;
Expand Down

0 comments on commit 62da028

Please sign in to comment.