]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:44:44 +0000 (15:44 -0700)
commit1869c9329f2de2813d7c46c23db50e4b89f9e7e9
treeca81cacc2d919c5b7a233e96eb52e67691f00f92
parent458c08de6d2e6799e7f0393179f085948a91e15e
xhci: Fix list corruption in urb dequeue at host removal

Orabug: 23330812

[ Upstream commit 5c82171167adb8e4ac77b91a42cd49fb211a81a0 ]

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.

Cc: <stable@vger.kernel.org>
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 8552bea30320cc866c7fb5d9a687c3e6d15fb5c1)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/usb/host/xhci.c