Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364369
b: refs/heads/master
c: 769d736
h: refs/heads/master
i:
  364367: 77d6701
v: v3
  • Loading branch information
David Linares authored and Greg Kroah-Hartman committed Mar 25, 2013
1 parent dc40a31 commit 7da7835
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5410a473fb7a466020af31e8b400c2d14ed94925
refs/heads/master: 769d7368b1727b1b5369d88badf0cbdf0163e079
4 changes: 4 additions & 0 deletions trunk/drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,10 @@ static int hub_configure(struct usb_hub *hub,
message = "hub has too many ports!";
ret = -ENODEV;
goto fail;
} else if (hub->descriptor->bNbrPorts == 0) {
message = "hub doesn't have any ports!";
ret = -ENODEV;
goto fail;
}

hdev->maxchild = hub->descriptor->bNbrPorts;
Expand Down

0 comments on commit 7da7835

Please sign in to comment.