Merge "msm: adsprpc: Handle UAF in process shell memory"

This commit is contained in:
qctecmdr 2021-11-26 09:39:00 -08:00 committed by Gerrit - the friendly Code Review server
commit e904060a40

View file

@ -2701,6 +2701,8 @@ static int fastrpc_init_process(struct fastrpc_file *fl,
err = fastrpc_mmap_create(fl, -1, 0, init->mem,
init->memlen, ADSP_MMAP_REMOTE_HEAP_ADDR,
&mem);
if (mem)
mem->is_filemap = true;
mutex_unlock(&fl->map_mutex);
if (err)
goto bail;