diff options
| author | Thinh Nguyen <Thinh.Nguyen@synopsys.com> | 2026-10-21 00:37:51 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-10-29 11:09:24 +0100 |
| commit | 5eb11b1647b0534b3a61a21473d77ebf4ffbed7c (patch) | |
| tree | 5d5d64cabc7b71159097b736d9d81c220ca60834 /tools/perf/scripts/python/flamegraph.py | |
| parent | 3ee1e1c3fca6fb5d0abbe0fc91539951ffa60aa7 (diff) | |
usb: dwc3: gadget: Reject requests to a disabled endpoint
__dwc3_gadget_ep_disable() releases the lock while giving back requests,
and DWC3_EP_ENABLED is only cleared afterward. A function driver can
queue a new request in this window, and the driver would start a
transfer on an endpoint that is already disabled in hardware.
Clear DWC3_EP_ENABLED before giving back the requests, and reject
requests queued to an endpoint that is not enabled.
Fixes: 72246da40f37 ("usb: Introduce DesignWare USB3 DRD Driver")
Cc: stable <stable@kernel.org>
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://patch.msgid.link/4ceab6aa5d6af0e4780f9d3a964fd5d8168a0a02.1792542945.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
