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

Commit 786520f2 authored by Mukund Atre's avatar Mukund Atre
Browse files

msm: camera: Add cpas stop in case of notify secure mode failure



In case of notify secure mode failure, call cpas stop on cpas handle.

Change-Id: I59bdfef79c472797217d15deb7dcc2bc577554a7
Signed-off-by: default avatarMukund Atre <matre@codeaurora.org>
parent b048651c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -845,6 +845,7 @@ int32_t cam_csiphy_core_cfg(void *phy_dev,
			if (rc < 0) {
				csiphy_dev->csiphy_info.secure_mode[offset] =
					CAM_SECURE_MODE_NON_SECURE;
				cam_cpas_stop(csiphy_dev->cpas_handle);
				goto release_mutex;
			}
		}