Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326000
b: refs/heads/master
c: 1f2235b
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Shishkin authored and Greg Kroah-Hartman committed Sep 12, 2012
1 parent 3d78e6e commit 495d720
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 58efc77c86af5cb81d7d7ea0c3c3e675e7d121dc
refs/heads/master: 1f2235b8e79bd276f19809f7f2a270f55909d695
6 changes: 3 additions & 3 deletions trunk/drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1584,9 +1584,6 @@ static void hub_disconnect(struct usb_interface *intf)
struct usb_device *hdev = interface_to_usbdev(intf);
int i;

for (i = 0; i < hdev->maxchild; i++)
usb_hub_remove_port_device(hub, i + 1);

/* Take the hub off the event list and don't let it be added again */
spin_lock_irq(&hub_event_lock);
if (!list_empty(&hub->event_list)) {
Expand All @@ -1601,6 +1598,9 @@ static void hub_disconnect(struct usb_interface *intf)
hub_quiesce(hub, HUB_DISCONNECT);

usb_set_intfdata (intf, NULL);

for (i = 0; i < hdev->maxchild; i++)
usb_hub_remove_port_device(hub, i + 1);
hub->hdev->maxchild = 0;

if (hub->hdev->speed == USB_SPEED_HIGH)
Expand Down

0 comments on commit 495d720

Please sign in to comment.