Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 79dbff44 authored by Harsh Shah's avatar Harsh Shah
Browse files

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: default avatarHarsh Shah <harshs@codeaurora.org>
parent 65ad3cde
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment