Commit 15e0d984 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: check to see if we have a disconnect function before trying to call it.

parent 1dab1f42
...@@ -137,7 +137,7 @@ void usb_unbind_driver(struct usb_device *device, struct usb_interface *intf) ...@@ -137,7 +137,7 @@ void usb_unbind_driver(struct usb_device *device, struct usb_interface *intf)
driver = intf->driver; driver = intf->driver;
priv = intf->private_data; priv = intf->private_data;
if (!driver) if (!driver || !driver->disconnect)
return; return;
/* as soon as we increase the module use count we drop the BKL /* as soon as we increase the module use count we drop the BKL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment