]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm: Prune GEM vma entries
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Sep 2010 20:28:30 +0000 (21:28 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 29 Oct 2010 04:51:30 +0000 (21:51 -0700)
commitac9f371955a1d6ce27b1464a86137b4cdb0f43d8
tree8b1cc779dfe2a8f32edbc7ece65f77c0ca985bee
parent39a3fcd46e669818b54dd9f587f11a40ccdbebe2
drm: Prune GEM vma entries

commit 31dfbc93923c0aaa0440b809f80ff2830c6a531a upstream.

Hook the GEM vm open/close ops into the generic drm vm open/close so
that the private vma entries are created and destroy appropriately.
Fixes the leak of the drm_vma_entries during the lifetime of the filp.

Reported-by: Matt Mackall <mpm@selenic.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/drm_vm.c
include/drm/drmP.h