diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0584-drm-amdgpu-fix-memory-leak-in-amdgpu_vm_update_page_.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0584-drm-amdgpu-fix-memory-leak-in-amdgpu_vm_update_page_.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/common/recipes-kernel/linux/files/0584-drm-amdgpu-fix-memory-leak-in-amdgpu_vm_update_page_.patch b/common/recipes-kernel/linux/files/0584-drm-amdgpu-fix-memory-leak-in-amdgpu_vm_update_page_.patch deleted file mode 100644 index 7a5b1a5e..00000000 --- a/common/recipes-kernel/linux/files/0584-drm-amdgpu-fix-memory-leak-in-amdgpu_vm_update_page_.patch +++ /dev/null @@ -1,43 +0,0 @@ -From 7a574557e62dc3d2d7ed55fa0b99e7d5bb403878 Mon Sep 17 00:00:00 2001 -From: Sudip Mukherjee <sudipm.mukherjee@gmail.com> -Date: Thu, 8 Oct 2015 19:28:01 +0530 -Subject: [PATCH 0584/1565] drm/amdgpu: fix memory leak in - amdgpu_vm_update_page_directory -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -If amdgpu_ib_get() fails we returned the error code but we missed -freeing ib. - -Cc: "Christian König" <christian.koenig@amd.com> -Cc: Jammy Zhou <Jammy.Zhou@amd.com> -Cc: Chunming Zhou <david1.zhou@amd.com> -Cc: Alex Deucher <alexander.deucher@amd.com> -Cc: "monk.liu" <monk.liu@amd.com> -Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> -Signed-off-by: Alex Deucher <alexander.deucher@amd.com> -Cc: stable@vger.kernel.org ---- - drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c -index 1e14531..53d551f 100644 ---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c -+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c -@@ -455,8 +455,10 @@ int amdgpu_vm_update_page_directory(struct amdgpu_device *adev, - return -ENOMEM; - - r = amdgpu_ib_get(ring, NULL, ndw * 4, ib); -- if (r) -+ if (r) { -+ kfree(ib); - return r; -+ } - ib->length_dw = 0; - - /* walk over the address space and update the page directory */ --- -1.9.1 - |