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

Commit f86a12e2 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ADSPRPC: Null check for file session context during release" into msm-4.9

parents 8ced3220 d7fbcbb9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1840,6 +1840,10 @@ static int fastrpc_file_free(struct fastrpc_file *fl)
	hlist_del_init(&fl->hn);
	spin_unlock(&fl->apps->hlock);

	if (!fl->sctx) {
		kfree(fl);
		return 0;
	}
	(void)fastrpc_release_current_dsp_process(fl);
	fastrpc_context_list_dtor(fl);
	fastrpc_buf_list_free(fl);