Files
linux/drivers
Aaron Ma ae52c0d858 usb: xhci: fix uninitialized completion when USB3 port got wrong status
commit 958c0bd860 upstream.

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>
2018-12-01 09:46:41 +01:00
..
2018-07-22 14:25:52 +02:00
2018-02-25 11:03:51 +01:00
2016-09-24 10:07:35 +02:00
2018-11-10 07:41:42 -08:00
2018-11-21 09:27:37 +01:00
2018-11-21 09:27:36 +01:00
2018-12-01 09:46:41 +01:00
2018-11-27 16:08:02 +01:00
2018-10-10 08:52:04 +02:00