diff options
author | Jonathan Bell <jonathan@raspberrypi.com> | 2021-10-08 12:25:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-11 07:42:18 +0200 |
commit | a01ba2a3378be85538e0183ae5367c1bc1d5aaf3 (patch) | |
tree | 3ace2ba2d3ef454719965cd6c2e2b7145361f315 /drivers/usb/host/xhci.h | |
parent | 64570fbc14f8d7cb3fe3995f20e26bc25ce4b2cc (diff) |
xhci: guard accesses to ep_state in xhci_endpoint_reset()
See https://github.com/raspberrypi/linux/issues/3981
Two read-modify-write cycles on ep->ep_state are not guarded by
xhci->lock. Fix these.
Fixes: f5249461b504 ("xhci: Clear the host side toggle manually when endpoint is soft reset")
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20211008092547.3996295-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci.h')
0 files changed, 0 insertions, 0 deletions