diff options
author | Steve French <sfrench@us.ibm.com> | 2005-11-30 15:56:59 -0800 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-11-30 15:56:59 -0800 |
commit | d2149b542382bfc206cb28485108f6470c979566 (patch) | |
tree | 484fad0d7493a9cfe33202db3687d348c0140f33 /drivers/usb/host/ohci-hcd.c | |
parent | 25741b3e43151bc207dd2b850b0bb157c442682b (diff) | |
parent | 346f7dbb17cb7d84317b4410df2e8f7bf2e57f44 (diff) | |
download | blackbird-op-linux-d2149b542382bfc206cb28485108f6470c979566.tar.gz blackbird-op-linux-d2149b542382bfc206cb28485108f6470c979566.zip |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'drivers/usb/host/ohci-hcd.c')
-rw-r--r-- | drivers/usb/host/ohci-hcd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 5c0c6c8a7a82..bf1d9abc07ac 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c @@ -115,7 +115,7 @@ /*-------------------------------------------------------------------------*/ -// #define OHCI_VERBOSE_DEBUG /* not always helpful */ +#undef OHCI_VERBOSE_DEBUG /* not always helpful */ /* For initializing controller (mask in an HCFS mode too) */ #define OHCI_CONTROL_INIT OHCI_CTRL_CBSR @@ -253,6 +253,10 @@ static int ohci_urb_enqueue ( spin_lock_irqsave (&ohci->lock, flags); /* don't submit to a dead HC */ + if (!test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags)) { + retval = -ENODEV; + goto fail; + } if (!HC_IS_RUNNING(hcd->state)) { retval = -ENODEV; goto fail; |