diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-27 21:28:30 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-09-28 09:14:34 +1000 |
commit | 31dfbc93923c0aaa0440b809f80ff2830c6a531a (patch) | |
tree | 9527de1c84f266ea23d6009c454d7cf1d1769889 /include/drm | |
parent | 73758a5d51280ca0613b8380fc07351f4d64f9c8 (diff) | |
download | op-kernel-dev-31dfbc93923c0aaa0440b809f80ff2830c6a531a.zip op-kernel-dev-31dfbc93923c0aaa0440b809f80ff2830c6a531a.tar.gz |
drm: Prune GEM vma entries
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>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drmP.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 7809d230..774e1d4 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -1175,6 +1175,7 @@ extern int drm_release(struct inode *inode, struct file *filp); extern int drm_mmap(struct file *filp, struct vm_area_struct *vma); extern int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma); extern void drm_vm_open_locked(struct vm_area_struct *vma); +extern void drm_vm_close_locked(struct vm_area_struct *vma); extern resource_size_t drm_core_get_map_ofs(struct drm_local_map * map); extern resource_size_t drm_core_get_reg_ofs(struct drm_device *dev); extern unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait); |