diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2016-09-01 14:48:33 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-09-19 11:22:08 +0200 |
commit | d9a1f0b4eb6080dc42bb6373ab9abb0314cea41e (patch) | |
tree | e30f04ac27771cc64af6c1e2de9386742b90d0ae /drivers/gpu/drm/nouveau/nouveau_bo.c | |
parent | 75ae95a75d640129fc4aff412c6ecc057142a149 (diff) | |
download | linux-stable-d9a1f0b4eb6080dc42bb6373ab9abb0314cea41e.tar.gz linux-stable-d9a1f0b4eb6080dc42bb6373ab9abb0314cea41e.tar.bz2 linux-stable-d9a1f0b4eb6080dc42bb6373ab9abb0314cea41e.zip |
drm: use drm_file to tag vm-bos
Rather than using "struct file*", use "struct drm_file*" as tag VM tag for
BOs. This will pave the way for "struct drm_file*" without any "struct
file*" back-pointer.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20160901124837.680-3-dh.herrmann@gmail.com
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_bo.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index 8ab9ce5089fe..66f31c3eb8ba 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1315,7 +1315,8 @@ nouveau_bo_verify_access(struct ttm_buffer_object *bo, struct file *filp) { struct nouveau_bo *nvbo = nouveau_bo(bo); - return drm_vma_node_verify_access(&nvbo->gem.vma_node, filp); + return drm_vma_node_verify_access(&nvbo->gem.vma_node, + filp->private_data); } static int |