Merge "msm: kgsl: Zero the pointer to the dmabuf sg list before freeing"

This commit is contained in:
Linux Build Service Account 2016-07-08 15:17:18 -07:00 committed by Gerrit - the friendly Code Review server
commit 7c47191855
1 changed files with 3 additions and 1 deletions

View File

@ -2417,8 +2417,10 @@ long kgsl_ioctl_gpuobj_import(struct kgsl_device_private *dev_priv,
return 0;
unmap:
if (param->type == KGSL_USER_MEM_TYPE_DMABUF)
if (param->type == KGSL_USER_MEM_TYPE_DMABUF) {
kgsl_destroy_ion(entry->priv_data);
entry->memdesc.sgt = NULL;
}
kgsl_sharedmem_free(&entry->memdesc);