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

Commit 92f4fbc3 authored by Tejas Prajapati's avatar Tejas Prajapati Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: reqmgr: return if sync_slot_idx is not found



While finding slot for the index if the slot is not found
the sync_slot_idx value is set to -1 and identified as
sync link is not ready, to avoid further checks return
with -EAGAIN once the value is set to -1.

Change-Id: Ibb22406dd27d45f139df8d03389b8833fbfe9614
Signed-off-by: default avatarTejas Prajapati <tpraja@codeaurora.org>
parent 1d886afe
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1007,6 +1007,7 @@ static int __cam_req_mgr_check_sync_req_is_ready(
		CAM_DBG(CAM_CRM, "Req: %lld not found on link: %x [other link]",
			req_id, sync_link->link_hdl);
		sync_ready = false;
		return -EAGAIN;
	}

	if ((sync_link->req.in_q->slot[sync_slot_idx].status !=