summarylogtreecommitdiffstats
path: root/0005-fix_drm_vma_node_verify_access.patch
diff options
context:
space:
mode:
Diffstat (limited to '0005-fix_drm_vma_node_verify_access.patch')
-rw-r--r--0005-fix_drm_vma_node_verify_access.patch22
1 files changed, 0 insertions, 22 deletions
diff --git a/0005-fix_drm_vma_node_verify_access.patch b/0005-fix_drm_vma_node_verify_access.patch
deleted file mode 100644
index 8c1d49bfe31f..000000000000
--- a/0005-fix_drm_vma_node_verify_access.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- a/amd/amdgpu/amdgpu_ttm.c 2017-01-23 03:01:42.000000000 +0100
-+++ b/amd/amdgpu/amdgpu_ttm.c 2017-02-06 13:49:25.767120946 +0100
-@@ -251,11 +251,19 @@
-
- static int amdgpu_verify_access(struct ttm_buffer_object *bo, struct file *filp)
- {
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
-+ struct drm_file *file_priv;
-+#endif
- struct amdgpu_bo *abo = container_of(bo, struct amdgpu_bo, tbo);
-
- if (amdgpu_ttm_tt_get_usermm(bo->ttm))
- return -EPERM;
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
-+ file_priv = filp->private_data;
-+ return drm_vma_node_verify_access(&abo->gem_base.vma_node, file_priv);
-+#else
- return drm_vma_node_verify_access(&abo->gem_base.vma_node, filp);
-+#endif
- }
-
- static void amdgpu_move_null(struct ttm_buffer_object *bo,