Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326143
b: refs/heads/master
c: 0a23140
h: refs/heads/master
i:
  326141: e36a688
  326139: d7cb696
  326135: d8f34a7
  326127: 5c93901
  326111: 26e5d29
  326079: f8af581
  326015: 8b421aa
  325887: dbd92cc
  325631: 5c660b6
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Sep 26, 2012
1 parent 58c3019 commit 789f872
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 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: 655db7980596f0ad4f15f8f4c51beb3e705762de
refs/heads/master: 0a2314035cab62cafc38ea11ec5b6f95cf347b38
2 changes: 1 addition & 1 deletion trunk/drivers/usb/core/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ static ssize_t usb_device_read(struct file *file, char __user *buf,
/* print devices for all busses */
list_for_each_entry(bus, &usb_bus_list, bus_list) {
/* recurse through all children of the root hub */
if (!bus->root_hub)
if (!bus_to_hcd(bus)->rh_registered)
continue;
usb_lock_device(bus->root_hub);
ret = usb_device_dump(&buf, &nbytes, &skip_bytes, ppos,
Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/usb/core/hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1011,10 +1011,7 @@ static int register_root_hub(struct usb_hcd *hcd)
if (retval) {
dev_err (parent_dev, "can't register root hub for %s, %d\n",
dev_name(&usb_dev->dev), retval);
}
mutex_unlock(&usb_bus_list_lock);

if (retval == 0) {
} else {
spin_lock_irq (&hcd_root_hub_lock);
hcd->rh_registered = 1;
spin_unlock_irq (&hcd_root_hub_lock);
Expand All @@ -1023,6 +1020,7 @@ static int register_root_hub(struct usb_hcd *hcd)
if (HCD_DEAD(hcd))
usb_hc_died (hcd); /* This time clean up */
}
mutex_unlock(&usb_bus_list_lock);

return retval;
}
Expand Down

0 comments on commit 789f872

Please sign in to comment.