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

Commit bb237a44 authored by Vikram Sharma's avatar Vikram Sharma
Browse files

msm: camera: isp: Init spinlock to avoid unexpected behaviour



Using spin lock without init may result in unexpected behaviour,
This change initialize ctx_lock during init.

CRs-Fixed: 2724911
Change-Id: I250e6b1359bf9f3e2f3ec1ee27f6df84a50b207d
Signed-off-by: default avatarVikram Sharma <vikramsa@codeaurora.org>
parent c96c341d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7659,6 +7659,7 @@ int cam_ife_hw_mgr_init(struct cam_hw_mgr_intf *hw_mgr_intf, int *iommu_hdl)
	memset(&g_ife_hw_mgr, 0, sizeof(g_ife_hw_mgr));

	mutex_init(&g_ife_hw_mgr.ctx_mutex);
	spin_lock_init(&g_ife_hw_mgr.ctx_lock);

	if (CAM_IFE_HW_NUM_MAX != CAM_IFE_CSID_HW_NUM_MAX) {
		CAM_ERR(CAM_ISP, "CSID num is different then IFE num");