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

Commit 12f32689 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ADSPRPC: Null check for file session context"

parents 287e3c9c b7bb0a0e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1312,6 +1312,13 @@ static int fastrpc_internal_invoke(struct fastrpc_file *fl, uint32_t mode,
	int interrupted = 0;
	int err = 0;

	VERIFY(err, fl->sctx);
	if (err)
		goto bail;
	VERIFY(err, fl->cid >= 0 && fl->cid < NUM_CHANNELS);
	if (err)
		goto bail;

	if (!kernel) {
		VERIFY(err, 0 == context_restore_interrupted(fl, invokefd,
								&ctx));