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.
Signed-off-by: Florian Wolter <email@example.com>
Signed-off-by: Sarah Sharp <firstname.lastname@example.org>
Signed-off-by: Ben Hutchings <email@example.com>
1 file changed