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

Commit 1548e8d2 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ADSPRPC: Check for valid context during release"

parents 499acb4a f7923708
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2215,6 +2215,9 @@ static int fastrpc_release_current_dsp_process(struct fastrpc_file *fl)
	int tgid = 0;

	VERIFY(err, fl->cid >= 0 && fl->cid < NUM_CHANNELS);
	if (err)
		goto bail;
	VERIFY(err, fl->sctx != NULL);
	if (err)
		goto bail;
	VERIFY(err, fl->apps->channel[fl->cid].rpdev != NULL);