aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0299-drm-amdgpu-stop-context-leak-in-the-error-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0299-drm-amdgpu-stop-context-leak-in-the-error-path.patch')
-rw-r--r--common/recipes-kernel/linux/files/0299-drm-amdgpu-stop-context-leak-in-the-error-path.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/common/recipes-kernel/linux/files/0299-drm-amdgpu-stop-context-leak-in-the-error-path.patch b/common/recipes-kernel/linux/files/0299-drm-amdgpu-stop-context-leak-in-the-error-path.patch
deleted file mode 100644
index e7a835d1..00000000
--- a/common/recipes-kernel/linux/files/0299-drm-amdgpu-stop-context-leak-in-the-error-path.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 5c2327beed49efa3198b8468e78b1182eb0b764b Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
-Date: Tue, 7 Jul 2015 17:27:03 +0200
-Subject: [PATCH 0299/1050] drm/amdgpu: stop context leak in the error path
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Christian König <christian.koenig@amd.com>
-Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
-index 469b6f2..1f040d8 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
-@@ -817,12 +817,16 @@ int amdgpu_cs_wait_ioctl(struct drm_device *dev, void *data,
-
- r = amdgpu_cs_get_ring(adev, wait->in.ip_type, wait->in.ip_instance,
- wait->in.ring, &ring);
-- if (r)
-+ if (r) {
-+ amdgpu_ctx_put(ctx);
- return r;
-+ }
-
- r = amdgpu_fence_recreate(ring, filp, wait->in.handle, &fence);
-- if (r)
-+ if (r) {
-+ amdgpu_ctx_put(ctx);
- return r;
-+ }
-
- r = fence_wait_timeout(&fence->base, true, timeout);
- amdgpu_fence_unref(&fence);
---
-1.9.1
-