Files
linux/drivers/usb/host
Mathias Nyman 6267a54a24 xhci: fix null pointer dereference in stop command timeout function
commit bcf42aa60c upstream.

The stop endpoint command has its own 5 second timeout timer.
If the timeout function is triggered between USB3 and USB2 host
removal it will try to call usb_hc_died(xhci_to_hcd(xhci)->primary_hcd)

the ->primary_hcd will be set to NULL at USB3 hcd removal.

Fix this by first checking if the PCI host is being removed, and
also by using only xhci_to_hcd() as it will always return the primary
hcd.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-09-24 10:07:41 +02:00
..
2013-12-03 10:34:33 -08:00
2015-04-03 19:03:19 +02:00
2013-05-30 21:34:31 +09:00
2014-11-03 15:26:15 -08:00
2013-12-03 10:34:33 -08:00
2015-04-03 19:03:18 +02:00
2013-12-03 10:34:33 -08:00
2015-04-03 19:03:18 +02:00
2015-10-16 23:44:33 -07:00
2015-10-16 23:44:33 -07:00
2015-04-03 19:03:17 +02:00
2015-01-25 21:01:13 +08:00
2015-06-08 14:26:22 -07:00
2013-12-03 10:34:33 -08:00
2013-01-24 13:42:09 -08:00
2016-09-07 08:32:40 +02:00