summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorXu Rao <raoxu@uniontech.com>2026-06-11 17:12:28 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-10 15:14:00 +0200
commit7a0d4f60da261f61dcb50c8e05fa53cc7d4d4427 (patch)
treeb9e5a464706acde03a6bc747ce10e7e316976b92 /tools/perf/scripts/python
parent6c562228d0ef75168ce9e310bc8c57d555317e29 (diff)
usb: gadget: u_audio: clean up capture endpoint on feedback failure
u_audio_start_capture() enables the capture OUT endpoint, queues capture requests and marks the stream active before setting up the optional feedback endpoint. If feedback endpoint configuration or enablement fails, the function returns an error while the capture endpoint remains enabled and its requests may remain queued. The current code even leaves TODO comments at these return paths. Unwind the already started capture endpoint on these failures. Also set fb_ep_enabled only after usb_ep_enable() succeeds, so the software state matches the endpoint state. Signed-off-by: Xu Rao <raoxu@uniontech.com> Link: https://patch.msgid.link/183621D513E0DE8B+20260611091229.4017443-1-raoxu@uniontech.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions