mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
Merge "qcedev: fix UAF in qcedev_smmu" into kernel.lnx.5.4.r1-rel
This commit is contained in:
commit
37f6b279b7
1 changed files with 5 additions and 1 deletions
|
|
@ -350,8 +350,12 @@ int qcedev_check_and_map_buffer(void *handle,
|
|||
return 0;
|
||||
|
||||
unmap:
|
||||
if (!found)
|
||||
if (!found) {
|
||||
qcedev_unmap_buffer(handle, mem_client, binfo);
|
||||
mutex_lock(&qce_hndl->registeredbufs.lock);
|
||||
list_del(&binfo->list);
|
||||
mutex_unlock(&qce_hndl->registeredbufs.lock);
|
||||
}
|
||||
|
||||
error:
|
||||
kfree(binfo);
|
||||
|
|
|
|||
Loading…
Reference in a new issue