summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjilai wang <jilaiw@codeaurora.org>2015-04-07 13:51:32 -0400
committerRob Clark <robdclark@gmail.com>2015-06-11 13:11:02 -0400
commitf28730c84fa987ba51e164cc4ecf2dac8d6dace1 (patch)
tree3847043140c3e6aa9990bd1c6f893a8d90a55fbc
parent07549dfbd9f218496eebf7d732bf3ab1c95882c2 (diff)
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>
-rw-r--r--drivers/gpu/drm/msm/msm_gem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_gem.c b/drivers/gpu/drm/msm/msm_gem.c
index 52839769eb6c..dfc74a5736a3 100644
--- a/drivers/gpu/drm/msm/msm_gem.c
+++ b/drivers/gpu/drm/msm/msm_gem.c
@@ -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);