diff options
author | Mario Schuknecht <mario.schuknecht@dresearch-fe.de> | 2015-01-26 20:30:27 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-27 09:34:58 -0600 |
commit | df6738d0d23321da834e9025845e26e09b0f6615 (patch) | |
tree | f0d0ee5e2960791389484631d180cf70ed3931de /drivers/usb/gadget/composite.c | |
parent | cb83df77f3ec151d68a1b6be957207e6fc7b7f50 (diff) | |
download | linux-df6738d0d23321da834e9025845e26e09b0f6615.tar.bz2 |
usb: gadget: Fix os desc test
USB vendor type is encoded in field bmRequestType. Make test USB_TYPE_VENDOR
with bRequestType instead of bRequest.
Signed-off-by: Mario Schuknecht <mario.schuknecht@dresearch-fe.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/composite.c')
-rw-r--r-- | drivers/usb/gadget/composite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 617835348569..13adfd1a3f54 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -1655,7 +1655,7 @@ unknown: * OS descriptors handling */ if (cdev->use_os_string && cdev->os_desc_config && - (ctrl->bRequest & USB_TYPE_VENDOR) && + (ctrl->bRequestType & USB_TYPE_VENDOR) && ctrl->bRequest == cdev->b_vendor_code) { struct usb_request *req; struct usb_configuration *os_desc_cfg; |