commit | 79dbff441b04b55a8e246720d85dcbd6f8027213 | [log] [tgz] |
---|---|---|
author | Harsh Shah <harshs@codeaurora.org> | Tue Oct 03 15:52:48 2017 -0700 |
committer | Harsh Shah <harshs@codeaurora.org> | Wed Oct 04 14:31:05 2017 -0700 |
tree | c5b5722bb6146b07426d00f2f0bc1492d9e16226 | |
parent | 65ad3cde6f28d330e10f910a00c40850259032e6 [diff] |
msm: camera: jpeg: Protect ref_cnt underrun and other error During release, check if ref_cnt is already zero to prevent unbalanced deinit. Also, while handling errors during acquire, need to rectify the ref_cnt to prevent inconsistency. Change-Id: I7c53b19d0e43e04d8b497284a1c80b60f048eeac Signed-off-by: Harsh Shah <harshs@codeaurora.org>