diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/core/devio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index de6a7c07cf97..545da37afca7 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
@@ -493,7 +493,8 @@ static int check_ctrlrecip(struct dev_state *ps, unsigned int requesttype, unsig | |||
493 | { | 493 | { |
494 | int ret = 0; | 494 | int ret = 0; |
495 | 495 | ||
496 | if (ps->dev->state != USB_STATE_CONFIGURED) | 496 | if (ps->dev->state != USB_STATE_ADDRESS |
497 | && ps->dev->state != USB_STATE_CONFIGURED) | ||
497 | return -EHOSTUNREACH; | 498 | return -EHOSTUNREACH; |
498 | if (USB_TYPE_VENDOR == (USB_TYPE_MASK & requesttype)) | 499 | if (USB_TYPE_VENDOR == (USB_TYPE_MASK & requesttype)) |
499 | return 0; | 500 | return 0; |