diff options
-rw-r--r-- | drivers/hid/usbhid/hid-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index 08232e07f1e1..3f468121fb8f 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c @@ -1385,6 +1385,7 @@ static void usbhid_disconnect(struct usb_interface *intf) if (WARN_ON(!hid)) return; + usb_set_intfdata(intf, NULL); usbhid = hid->driver_data; spin_lock_irq(&usbhid->lock); set_bit(HID_DISCONNECTED, &usbhid->iofl); |