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

Commit 43188bce authored by Alok Chauhan's avatar Alok Chauhan
Browse files

msm: camera: ope: handle unlocking in process timer



In process timer, if there are no empty taks then it
returns without unlocking context mutext. This lead
to deadlock later if other tasks are waiting on this
lock.

CRs-Fixed: 2823721
Change-Id: I478d1797be59d975e9d58e005a5fad5c22656f51
Signed-off-by: default avatarAlok Chauhan <alokc@codeaurora.org>
parent b91c235d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -707,6 +707,7 @@ static int32_t cam_ope_process_request_timer(void *priv, void *data)
		task = cam_req_mgr_workq_get_task(ope_hw_mgr->msg_work);
		if (!task) {
			CAM_ERR(CAM_OPE, "no empty task");
			mutex_unlock(&ctx_data->ctx_mutex);
			return 0;
		}
		task_data = (struct ope_msg_work_data *)task->payload;