|
@@ -739,6 +739,8 @@ static int check_ctrlrecip(struct dev_state *ps, unsigned int requesttype,
|
|
|
index &= 0xff;
|
|
index &= 0xff;
|
|
|
switch (requesttype & USB_RECIP_MASK) {
|
|
switch (requesttype & USB_RECIP_MASK) {
|
|
|
case USB_RECIP_ENDPOINT:
|
|
case USB_RECIP_ENDPOINT:
|
|
|
|
|
+ if ((index & ~USB_DIR_IN) == 0)
|
|
|
|
|
+ return 0;
|
|
|
ret = findintfep(ps->dev, index);
|
|
ret = findintfep(ps->dev, index);
|
|
|
if (ret >= 0)
|
|
if (ret >= 0)
|
|
|
ret = checkintf(ps, ret);
|
|
ret = checkintf(ps, ret);
|