Skip to content
Commit 688c22c7 authored by Junzhe Zou's avatar Junzhe Zou
Browse files

msm: camera: sync: protect sync obj creation from race condition



Multiple thread can find the same sync obj and waiting for lock.
If the spinlock releases after another thread finds a sync obj,
there is possibility that they will get the same id. Use atomic
operation to ensure obj is free.

Change-Id: I1d3c40f2c0315d27ecf11b953a3c9bdb89d41ef8
Signed-off-by: default avatarJunzhe Zou <jnzhezou@codeaurora.org>
parent 2152c7bc
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