diff options
author | Greg Kroah-Hartman | 2014-09-15 07:17:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-09-15 07:17:40 +0200 |
commit | 882ebfc28c389be86535bda4a7d9e407020356bf (patch) | |
tree | e8f3ddeda13196f40040f3ba4701ece5d38c63cc /drivers/usb/core | |
parent | mips/uapi: Add definition of TIOC[SG]RS485 (diff) | |
parent | Linux 3.17-rc5 (diff) | |
download | kernel-qcow2-linux-882ebfc28c389be86535bda4a7d9e407020356bf.tar.gz kernel-qcow2-linux-882ebfc28c389be86535bda4a7d9e407020356bf.tar.xz kernel-qcow2-linux-882ebfc28c389be86535bda4a7d9e407020356bf.zip |
Merge 3.17-rc5 into tty-next
We want those fixes in here as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/hub.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 46f5161c7891..d481c99a20d7 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -5024,9 +5024,10 @@ static void hub_events(void) hub = list_entry(tmp, struct usb_hub, event_list); kref_get(&hub->kref); + hdev = hub->hdev; + usb_get_dev(hdev); spin_unlock_irq(&hub_event_lock); - hdev = hub->hdev; hub_dev = hub->intfdev; intf = to_usb_interface(hub_dev); dev_dbg(hub_dev, "state %d ports %d chg %04x evt %04x\n", @@ -5139,6 +5140,7 @@ static void hub_events(void) usb_autopm_put_interface(intf); loop_disconnected: usb_unlock_device(hdev); + usb_put_dev(hdev); kref_put(&hub->kref, hub_release); } /* end while (1) */ |