Commit f28730c8 authored by jilai wang's avatar jilai wang Committed by Rob Clark

drm/msm: Call drm_prime_gem_destroy to clean up imported GEM object

If the GEM object is imported, drm_prime_gem_destroy needs to be
called to clean up dma buffer related information.
Signed-off-by: default avatarJilai Wang <jilaiw@codeaurora.org>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 07549dfb
...@@ -540,6 +540,7 @@ void msm_gem_free_object(struct drm_gem_object *obj) ...@@ -540,6 +540,7 @@ void msm_gem_free_object(struct drm_gem_object *obj)
if (msm_obj->pages) if (msm_obj->pages)
drm_free_large(msm_obj->pages); drm_free_large(msm_obj->pages);
drm_prime_gem_destroy(obj, msm_obj->sgt);
} else { } else {
vunmap(msm_obj->vaddr); vunmap(msm_obj->vaddr);
put_pages(obj); put_pages(obj);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment