diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2016-09-07 17:26:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-08 08:39:46 +0200 |
commit | bcf42aa60c2832510b9be0f30c090bfd35bb172d (patch) | |
tree | 702e101c16910063d85580a74ed6645cbb8984f3 /samples | |
parent | c6935931c1894ff857616ff8549b61236a19148f (diff) | |
download | linux-bcf42aa60c2832510b9be0f30c090bfd35bb172d.tar.bz2 |
xhci: fix null pointer dereference in stop command timeout function
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.
CC: <stable@vger.kernel.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions