Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248790
b: refs/heads/master
c: 7ed603e
h: refs/heads/master
v: v3
  • Loading branch information
Matt Evans authored and Sarah Sharp committed May 2, 2011
1 parent c19441a commit 10704e2
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 92a3da410aac6e14daaefe13c60368ca28e85830
refs/heads/master: 7ed603ecf8b68ab81f4c83097d3063d43ec73bb8
11 changes: 11 additions & 0 deletions trunk/drivers/usb/host/xhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2546,6 +2546,17 @@ int xhci_address_device(struct usb_hcd *hcd, struct usb_device *udev)

virt_dev = xhci->devs[udev->slot_id];

if (WARN_ON(!virt_dev)) {
/*
* In plug/unplug torture test with an NEC controller,
* a zero-dereference was observed once due to virt_dev = 0.
* Print useful debug rather than crash if it is observed again!
*/
xhci_warn(xhci, "Virt dev invalid for slot_id 0x%x!\n",
udev->slot_id);
return -EINVAL;
}

slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx);
/*
* If this is the first Set Address since device plug-in or
Expand Down

0 comments on commit 10704e2

Please sign in to comment.