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

This commit is contained in:
Linux Build Service Account 2017-03-09 17:21:33 -08:00 committed by Gerrit - the friendly Code Review server
commit db08e7c668

View file

@ -2114,6 +2114,10 @@ static int fastrpc_file_free(struct fastrpc_file *fl)
hlist_del_init(&fl->hn); hlist_del_init(&fl->hn);
spin_unlock(&fl->apps->hlock); spin_unlock(&fl->apps->hlock);
if (!fl->sctx) {
kfree(fl);
return 0;
}
(void)fastrpc_release_current_dsp_process(fl); (void)fastrpc_release_current_dsp_process(fl);
fastrpc_context_list_dtor(fl); fastrpc_context_list_dtor(fl);
fastrpc_buf_list_free(fl); fastrpc_buf_list_free(fl);