summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_gem.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-02-23 11:37:26 +0000
committerDave Airlie <airlied@redhat.com>2012-03-05 11:19:08 +0000
commit966e0cdd504657333415f43de6a219197511ebff (patch)
tree62aa0782141b62ad2a0c22ba2249fa8e2d94fe5e /drivers/gpu/drm/drm_gem.c
parent81ffbbedc37c6043e5f5b123da926aa7dd8ad60a (diff)
downloadlinux-3.10-966e0cdd504657333415f43de6a219197511ebff.tar.gz
linux-3.10-966e0cdd504657333415f43de6a219197511ebff.tar.bz2
linux-3.10-966e0cdd504657333415f43de6a219197511ebff.zip
drm: drop setting vm_file to filp
Talking to Al Viro on irc, we can see no possible reason for doing this, the upper mmap code does it. The code has been there since first import into drm tree I can find. Al tracked down this as a requirement pre 2.3.51 hasn't been needed since. Acked-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_gem.c')
-rw-r--r--drivers/gpu/drm/drm_gem.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
index f8625e29072..3ebe3c8f58b 100644
--- a/drivers/gpu/drm/drm_gem.c
+++ b/drivers/gpu/drm/drm_gem.c
@@ -700,7 +700,6 @@ int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)
*/
drm_gem_object_reference(obj);
- vma->vm_file = filp; /* Needed for drm_vm_open() */
drm_vm_open_locked(vma);
out_unlock: