diff options
Diffstat (limited to 'drivers/usb/gadget/f_fs.c')
-rw-r--r-- | drivers/usb/gadget/f_fs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c index dcd1c7fbb016..8adc79d1b402 100644 --- a/drivers/usb/gadget/f_fs.c +++ b/drivers/usb/gadget/f_fs.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/blkdev.h> | 21 | #include <linux/blkdev.h> |
22 | #include <linux/pagemap.h> | 22 | #include <linux/pagemap.h> |
23 | #include <linux/export.h> | 23 | #include <linux/export.h> |
24 | #include <linux/hid.h> | ||
24 | #include <asm/unaligned.h> | 25 | #include <asm/unaligned.h> |
25 | 26 | ||
26 | #include <linux/usb/composite.h> | 27 | #include <linux/usb/composite.h> |
@@ -1671,6 +1672,12 @@ static int __must_check ffs_do_desc(char *data, unsigned len, | |||
1671 | } | 1672 | } |
1672 | break; | 1673 | break; |
1673 | 1674 | ||
1675 | case HID_DT_HID: | ||
1676 | pr_vdebug("hid descriptor\n"); | ||
1677 | if (length != sizeof(struct hid_descriptor)) | ||
1678 | goto inv_length; | ||
1679 | break; | ||
1680 | |||
1674 | case USB_DT_OTG: | 1681 | case USB_DT_OTG: |
1675 | if (length != sizeof(struct usb_otg_descriptor)) | 1682 | if (length != sizeof(struct usb_otg_descriptor)) |
1676 | goto inv_length; | 1683 | goto inv_length; |