Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 58bc1fb0 authored by Udipto Goswami's avatar Udipto Goswami
Browse files

usb: gadget: Prevent endless_req being freed from disconnect_work



Commit 05c1d8c ("usb: gadget: Prevent use after free in qdss connect
& close") provided a fix for preventing dwc3 driver from accessing
usb_request after dequeue. However, while doing usb disconnect &
connecting again due to endless_req being NULL the BAM2BAM
communication fails. So for the subsequent time the transfer fails.

Fix this by removing endless_req check from disconnect_work.

Change-Id: I8411cb2ae854fb9e2fa15ff89670035ff645289d
Signed-off-by: default avatarUdipto Goswami <ugoswami@codeaurora.org>
parent a553f436
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment