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

Commit e943bedb authored by Rupesh Tatiya's avatar Rupesh Tatiya Committed by Gerrit - the friendly Code Review server
Browse files

Bluetooth: change cancel_delayed_work to cancel_delayed_work_sync



When bluetooth transport driver module is unloaded, it is possible
that workqueue is destroyed while callback for delayed work is
executing. Wait for that callback to complete before destroying that
workqueue.

Do not cancel work in the work callback function, else it will result
in deadlock.

Change-Id: I3471f6968315fef9ad0c5ce288b61db057ff8180
Signed-off-by: default avatarRupesh Tatiya <rtatiya@codeaurora.org>
parent a69c694d
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