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

Commit 286149f5 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ADSPRPC: Add check to avoid out of bound scenario"

parents 5a9634ed 1eec07c3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4236,6 +4236,9 @@ static int fastrpc_internal_control(struct fastrpc_file *fl,
			fl->ws_timeout = MAX_PM_TIMEOUT_MS;
		else
			fl->ws_timeout = cp->pm.timeout;
		VERIFY(err, fl->cid >= 0 && fl->cid < NUM_CHANNELS);
		if (err)
			goto bail;
		fastrpc_pm_awake(fl, gcinfo[fl->cid].secure);
		break;
	case FASTRPC_CONTROL_DSPPROCESS_CLEAN: