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

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

msm: camera: core: Cleanup the logic for shutdown



Before calling release, we need to check the state to avoid
unnecessary release and putref, which would lead to underflow
of refcnt. Also, this change will set the dev and link handles
to non-zero so that the release is complete.

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