]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: Add an assertion to check for virt_dev=0 bug.
authorMatt Evans <matt@ozlabs.org>
Tue, 29 Mar 2011 02:40:56 +0000 (13:40 +1100)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 2 May 2011 23:42:50 +0000 (16:42 -0700)
commit28bbb37fc072d0c231264f9c80e0550b2ebf71f1
tree3eed33c09dda5e98e79692e69a1270d48a6f8299
parent97d42c5d86bb67ceed79bfed1e8a2c38f72faf54
xhci: Add an assertion to check for virt_dev=0 bug.

During a "plug-unplug" stress test on an NEC xHCI card, a null pointer
dereference was observed.  xhci_address_device() dereferenced a null
virt_dev (possibly an erroneous udev->slot_id?); this patch adds a WARN_ON &
message to aid debug if it can be recreated.

Signed-off-by: Matt Evans <matt@ozlabs.org>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci.c