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: Jilai Wang <jilaiw@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
07549dfbd9
commit
f28730c84f
|
@ -540,6 +540,7 @@ void msm_gem_free_object(struct drm_gem_object *obj)
|
|||
if (msm_obj->pages)
|
||||
drm_free_large(msm_obj->pages);
|
||||
|
||||
drm_prime_gem_destroy(obj, msm_obj->sgt);
|
||||
} else {
|
||||
vunmap(msm_obj->vaddr);
|
||||
put_pages(obj);
|
||||
|
|
Loading…
Reference in a new issue