diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 515310751303752d37390357d8bc9592e20e2592..fb488c8a860c9fc1ee8bc0605a501bd3de2d6e5a 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, static int verify_suspended(struct device *dev, void *unused) { + if (dev->driver == NULL) + return 0; return (dev->power.power_state.event == PM_EVENT_ON) ? -EBUSY : 0; }