]> git.hungrycats.org Git - linux/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2013 14:06:53 +0000 (07:06 -0700)
commit84f66252812f8c09482d5053bb793a7b14f344e3
tree32ccecd748298fda0e372b3851a87f84f27ab97b
parentc2d27c8a10cf767f4f1d988cc545db0db82c8244
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>
Cc: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c