From: Matt Evans Date: Tue, 29 Mar 2011 02:40:56 +0000 (+1100) Subject: xhci: Add an assertion to check for virt_dev=0 bug. X-Git-Tag: v3.0-rc1~337^2~83^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ed603ecf8b68ab81f4c83097d3063d43ec73bb8;p=pandora-kernel.git 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 Signed-off-by: Sarah Sharp --- Reading git-diff-tree failed