diff options
| -rw-r--r-- | drivers/usb/core/usb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 515310751303..fb488c8a860c 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c | |||
| @@ -991,6 +991,8 @@ void usb_buffer_unmap_sg (struct usb_device *dev, unsigned pipe, | |||
| 991 | 991 | ||
| 992 | static int verify_suspended(struct device *dev, void *unused) | 992 | static int verify_suspended(struct device *dev, void *unused) |
| 993 | { | 993 | { |
| 994 | if (dev->driver == NULL) | ||
| 995 | return 0; | ||
| 994 | return (dev->power.power_state.event == PM_EVENT_ON) ? -EBUSY : 0; | 996 | return (dev->power.power_state.event == PM_EVENT_ON) ? -EBUSY : 0; |
| 995 | } | 997 | } |
| 996 | 998 | ||
