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

Skip to content
Commit 9af7e6cb authored by Udipto Goswami's avatar Udipto Goswami
Browse files

usb: gadget: Prevent race between composite_setup & USB disconnect



While doing usb disconnect the ep0 is disabled, therefore
when composite_setup tries to queue on ep0 endpoint,
the operation result in race between the two functions
leading slab poison error since the request is already freed.
Fix this by disabling irqs, introducing flush for any
pending works to be cleared and enabling the irqs back.

Change-Id: I82f7a428929905762bae17dedbe717e0110155c5
Signed-off-by: default avatarUdipto Goswami <ugoswami@codeaurora.org>
parent d9e2b8ec
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