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

Skip to content
Commit 52f68a17 authored by Ido Shayevitz's avatar Ido Shayevitz
Browse files

usb: gadget: Ensure no pending works in bam drivers before init works



Due to valid race conditions, it may be possible that there
is a re-connect while there are pending works in the workqueue.
In case of re-connect, there is a reset of the works, and we need to do
this only if there are no pending, otherwise we will get access violation
when kworker will try to fetch the next work.

CRs-Fixed: 680422
Change-Id: Id1538bd57d9dd5df793cdafe2aa8464c1017885c
Signed-off-by: default avatarIdo Shayevitz <idos@codeaurora.org>
parent 3a1d2bde
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