summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-01-20 23:05:43 +0400
committerDavid Herrmann <dh.herrmann@gmail.com>2014-03-16 15:11:01 +0400
commit77472347972add74a3d89a0b9152b8eebc0ad2b0 (patch)
treee4742b8dd36123cbbf8dfa2761c60567332f3db7
parent16d2831d6f590681ef239562ac6d73c605e7d6dc (diff)
downloadlinux-77472347972add74a3d89a0b9152b8eebc0ad2b0.tar.xz
drm/gem: free vma-node during object-cleanup
All drivers currently need to clean up the vma-node manually. There is no fancy logic involved so lets just clean it up unconditionally. The vma-manager correctly catches multiple calls so we are fine. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
-rw-r--r--drivers/gpu/drm/drm_gem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
index dd8e38a22e23..5ea622c54e76 100644
--- a/drivers/gpu/drm/drm_gem.c
+++ b/drivers/gpu/drm/drm_gem.c
@@ -693,6 +693,8 @@ drm_gem_object_release(struct drm_gem_object *obj)
if (obj->filp)
fput(obj->filp);
+
+ drm_gem_free_mmap_offset(obj);
}
EXPORT_SYMBOL(drm_gem_object_release);