diff options
author | Aaron Ma <aaron.ma@canonical.com> | 2018-11-09 17:21:20 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-09 08:31:09 -0800 |
commit | 958c0bd86075d4ef1c936998deefe1947e539240 (patch) | |
tree | 815cc40d2afdaace28a1d38d9f085e6a4fb72561 /drivers/usb/host/ssb-hcd.c | |
parent | d9193efba84fe4c4aa22a569fade5e6ca971f8af (diff) | |
download | linux-958c0bd86075d4ef1c936998deefe1947e539240.tar.bz2 |
usb: xhci: fix uninitialized completion when USB3 port got wrong status
Realtek USB3.0 Card Reader [0bda:0328] reports wrong port status on
Cannon lake PCH USB3.1 xHCI [8086:a36d] after resume from S3,
after clear port reset it works fine.
Since this device is registered on USB3 roothub at boot,
when port status reports not superspeed, xhci_get_port_status will call
an uninitialized completion in bus_state[0].
Kernel will hang because of NULL pointer.
Restrict the USB2 resume status check in USB2 roothub to fix hang issue.
Cc: stable@vger.kernel.org
Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ssb-hcd.c')
0 files changed, 0 insertions, 0 deletions