Skip to content

Commit

Permalink
drm/gem: free vma-node during object-cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Herrmann committed Mar 16, 2014
1 parent 16d2831 commit 7747234
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/drm_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7747234

Please sign in to comment.