aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/devio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 8823e98989fe..caefc800f298 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -739,6 +739,8 @@ static int check_ctrlrecip(struct dev_state *ps, unsigned int requesttype,
739 index &= 0xff; 739 index &= 0xff;
740 switch (requesttype & USB_RECIP_MASK) { 740 switch (requesttype & USB_RECIP_MASK) {
741 case USB_RECIP_ENDPOINT: 741 case USB_RECIP_ENDPOINT:
742 if ((index & ~USB_DIR_IN) == 0)
743 return 0;
742 ret = findintfep(ps->dev, index); 744 ret = findintfep(ps->dev, index);
743 if (ret >= 0) 745 if (ret >= 0)
744 ret = checkintf(ps, ret); 746 ret = checkintf(ps, ret);