aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-trace.c
diff options
context:
space:
mode:
authorViraj Shah <[email protected]>2021-10-21 11:36:44 +0200
committerGreg Kroah-Hartman <[email protected]>2021-10-22 11:12:45 +0200
commit21b5fcdccb32ff09b6b63d4a83c037150665a83f (patch)
tree71280017f5baa11248663f5dccf182fa2688e84f /drivers/usb/cdns3/cdns3-trace.c
parent02f8b1360312d888e3f4ae4ab47dec6cd542678d (diff)
usb: musb: Balance list entry in musb_gadget_queue
musb_gadget_queue() adds the passed request to musb_ep::req_list. If the endpoint is idle and it is the first request then it invokes musb_queue_resume_work(). If the function returns an error then the error is passed to the caller without any clean-up and the request remains enqueued on the list. If the caller enqueues the request again then the list corrupts. Remove the request from the list on error. Fixes: ea2f35c01d5ea ("usb: musb: Fix sleeping function called from invalid context for hdrc glue") Cc: stable <[email protected]> Signed-off-by: Viraj Shah <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions