]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xhci: Fix list corruption in urb dequeue at host removal
authorMathias Nyman <mathias.nyman@linux.intel.com>
Tue, 26 Jan 2016 15:50:12 +0000 (17:50 +0200)
committerJiri Slaby <jslaby@suse.cz>
Thu, 25 Feb 2016 09:49:13 +0000 (10:49 +0100)
commitf555d8c469b4e693510b7d4486b9cf200d2ba930
tree710b62755466f834e9ec1325481390a20e061725
parent5a0451620e5c3ab83fbfd27d9103d0d6192d46d8
xhci: Fix list corruption in urb dequeue at host removal

commit 5c82171167adb8e4ac77b91a42cd49fb211a81a0 upstream.

xhci driver frees data for all devices, both usb2 and and usb3 the
first time usb_remove_hcd() is called, including td_list and and xhci_ring
structures.

When usb_remove_hcd() is called a second time for the second xhci bus it
will try to dequeue all pending urbs, and touches td_list which is already
freed for that endpoint.

Reported-by: Joe Lawrence <joe.lawrence@stratus.com>
Tested-by: Joe Lawrence <joe.lawrence@stratus.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/host/xhci.c