]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/usb/core/devio.c
usbfs: Always allow ctrl requests with USB_RECIP_ENDPOINT on the ctrl ep
[karo-tx-linux.git] / drivers / usb / core / devio.c
index b78fbe222b72c2e3bc662973e9f9f08941ce2628..ea0a9a14014b14512f2d751c9139d4f68e1177ff 100644 (file)
@@ -738,6 +738,8 @@ static int check_ctrlrecip(struct dev_state *ps, unsigned int requesttype,
        index &= 0xff;
        switch (requesttype & USB_RECIP_MASK) {
        case USB_RECIP_ENDPOINT:
+               if ((index & ~USB_DIR_IN) == 0)
+                       return 0;
                ret = findintfep(ps->dev, index);
                if (ret >= 0)
                        ret = checkintf(ps, ret);