commit | 688c22c74e456cb9cc1350be172fa02df0e9cd5e | [log] [tgz] |
---|---|---|
author | Junzhe Zou <jnzhezou@codeaurora.org> | Wed Nov 08 12:37:24 2017 -0800 |
committer | Junzhe Zou <jnzhezou@codeaurora.org> | Wed Nov 08 12:37:24 2017 -0800 |
tree | 3bbe4b063fef10166ad26399c92118331d3018ef | |
parent | 2152c7bc30d50caac7e69019cef1377f882cdb89 [diff] |
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: Junzhe Zou <jnzhezou@codeaurora.org>