Skip to content
Commit e55fd33c authored by Harsh Shah's avatar Harsh Shah Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: sync: Protect sync destroy against race condition



Take the lock before checking state in cam_sync_destroy() and hold the
lock until the end of cam_sync_destroy() to avoid race condition
between checking of state and setting of state. Also delete the
callback info from list before issuing the callback to further avoid
race condition between issuing callback and freeing cb_info in
cam_sync_deinit_object.

Change-Id: I1835dc1a868d5cb5ef7b517dbc2f227f7930726a
Signed-off-by: default avatarHarsh Shah <harshs@codeaurora.org>
parent b81eb44c
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