[PATCH 5/7] drm/gem: free vma-node during object-cleanup

David Herrmann dh.herrmann at gmail.com
Wed Feb 5 13:29:01 PST 2014


ping

On Mon, Jan 20, 2014 at 8:26 PM, David Herrmann <dh.herrmann at gmail.com> wrote:
> 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 at gmail.com>
> ---
>  drivers/gpu/drm/drm_gem.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
> index c1eaf35..7bf374e 100644
> --- a/drivers/gpu/drm/drm_gem.c
> +++ b/drivers/gpu/drm/drm_gem.c
> @@ -692,6 +692,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);
>
> --
> 1.8.5.3
>


More information about the dri-devel mailing list