xhci: Fix race between ep halt and URB cancellation
authorFlorian Wolter <wolly84@web.de>
Wed, 14 Aug 2013 08:33:16 +0000 (10:33 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 26 Oct 2013 20:06:13 +0000 (21:06 +0100)
commit47fa3c9b8352d4f403118b01f8a97fff1353c30b
tree489f04d214b0b28bb3d22911273174a41f98436c
parent4ecc545c9a903910bd23e40b6492d7b4f7ec03bc
xhci: Fix race between ep halt and URB cancellation

commit 526867c3ca0caa2e3e846cb993b0f961c33c2abb upstream.

The halted state of a endpoint cannot be cleared over CLEAR_HALT from a
user process, because the stopped_td variable was overwritten in the
handle_stopped_endpoint() function. So the xhci_endpoint_reset() function will
refuse the reset and communication with device can not run over this endpoint.
https://bugzilla.kernel.org/show_bug.cgi?id=60699

Signed-off-by: Florian Wolter <wolly84@web.de>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/host/xhci-ring.c