drm/gem: free vma-node during object-cleanup
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 20 Jan 2014 19:05:43 +0000 (20:05 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 16 Mar 2014 11:11:01 +0000 (12:11 +0100)
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>
drivers/gpu/drm/drm_gem.c

index dd8e38a22e236a8e1f633d5e204281ebcf0bb1d8..5ea622c54e76113a51f13d58859ef58e4eb19cd4 100644 (file)
@@ -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);