Skip to content
Commit d9c78392 authored by Seemanta Dutta's avatar Seemanta Dutta
Browse files

msm: camera: sync: Flush work queue before close



When cam_sync_close() is called, make sure all pending
work queues have finished by flushing the work queue. This
will ensure that any callback structs that are freed while
destroying are not accessed by the work running in the queue.

Not doing so will result in a use after free when the work in
the work queue gets scheduled.

Change-Id: Ibf857026865e9ff7e8ea50acc29c06f2e1c05931
Signed-off-by: default avatarSeemanta Dutta <seemanta@codeaurora.org>
parent f531607d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment