aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0316-drm-amdgpu-Fix-race-condition-in-MMU-notifier-releas.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0316-drm-amdgpu-Fix-race-condition-in-MMU-notifier-releas.patch')
-rw-r--r--common/recipes-kernel/linux/files/0316-drm-amdgpu-Fix-race-condition-in-MMU-notifier-releas.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/common/recipes-kernel/linux/files/0316-drm-amdgpu-Fix-race-condition-in-MMU-notifier-releas.patch b/common/recipes-kernel/linux/files/0316-drm-amdgpu-Fix-race-condition-in-MMU-notifier-releas.patch
deleted file mode 100644
index 78cdd951..00000000
--- a/common/recipes-kernel/linux/files/0316-drm-amdgpu-Fix-race-condition-in-MMU-notifier-releas.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 0c670ebe392faae5c1ddf407d8b9631126bd1094 Mon Sep 17 00:00:00 2001
-From: Felix Kuehling <Felix.Kuehling@amd.com>
-Date: Thu, 14 Jan 2016 00:35:08 -0500
-Subject: [PATCH 0316/1110] drm/amdgpu: Fix race condition in MMU notifier
- release
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-The release notifier can get called a second time from
-mmu_notifier_unregister depending on a race between
-__mmu_notifier_release and amdgpu_mn_destroy. Use
-mmu_notifier_unregister_no_release to avoid this.
-
-Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
-Reviewed-by: Christian K├Ânig <christian.koenig@amd.com>
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c
-index 61f0e3c..1b2105c 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c
-@@ -86,7 +86,7 @@ static void amdgpu_mn_destroy(struct work_struct *work)
- }
- mutex_unlock(&adev->mn_lock);
- up_write(&rmn->mm->mmap_sem);
-- mmu_notifier_unregister(&rmn->mn, rmn->mm);
-+ mmu_notifier_unregister_no_release(&rmn->mn, rmn->mm);
- kfree(rmn);
- }
-
---
-2.7.4
-