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

Commit b37352f9 authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: reqmgr: check validity of last_applied_idx" into camera-kernel.lnx.4.0

parents 2f911b9c 8694f8c8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2072,7 +2072,9 @@ static int __cam_req_mgr_process_sof_freeze(void *priv, void *data)
	in_q = link->req.in_q;
	if (in_q) {
		mutex_lock(&link->req.lock);
		last_applied_req_id = in_q->slot[in_q->last_applied_idx].req_id;
		if (in_q->last_applied_idx >= 0)
			last_applied_req_id =
				in_q->slot[in_q->last_applied_idx].req_id;
		mutex_unlock(&link->req.lock);
	}