aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorDan Vacura <[email protected]>2022-10-18 16:50:39 -0500
committerGreg Kroah-Hartman <[email protected]>2022-10-22 12:30:35 +0200
commit0a0a2760b04814428800d48281a447a7522470ad (patch)
tree310c3538e097e16024741b5a1bdcdbf06007a55b /tools/perf/util/trace-event-scripting.c
parent8e8e923a49967b798e7d69f1ce9eff1dd2533547 (diff)
usb: gadget: uvc: fix sg handling in error case
If there is a transmission error the buffer will be returned too early, causing a memory fault as subsequent requests for that buffer are still queued up to be sent. Refactor the error handling to wait for the final request to come in before reporting back the buffer to userspace for all transfer types (bulk/isoc/isoc_sg). This ensures userspace knows if the frame was successfully sent. Fixes: e81e7f9a0eb9 ("usb: gadget: uvc: add scatter gather support") Cc: <[email protected]> Signed-off-by: Dan Vacura <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions