drm: verify vma access in TTM+GEM drivers
[pandora-kernel.git] / drivers / gpu / drm / nouveau / nouveau_bo.c
index 4e7ee5f..e4444ba 100644 (file)
@@ -1260,7 +1260,9 @@ out:
 static int
 nouveau_bo_verify_access(struct ttm_buffer_object *bo, struct file *filp)
 {
-       return 0;
+       struct nouveau_bo *nvbo = nouveau_bo(bo);
+
+       return drm_vma_node_verify_access(&nvbo->gem->vma_node, filp);
 }
 
 static int