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>
This commit is contained in:
David Herrmann 2014-01-20 20:05:43 +01:00
parent 16d2831d6f
commit 7747234797
1 changed files with 2 additions and 0 deletions

View File

@ -693,6 +693,8 @@ drm_gem_object_release(struct drm_gem_object *obj)
if (obj->filp) if (obj->filp)
fput(obj->filp); fput(obj->filp);
drm_gem_free_mmap_offset(obj);
} }
EXPORT_SYMBOL(drm_gem_object_release); EXPORT_SYMBOL(drm_gem_object_release);