aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amdfalconx86/recipes-graphics/drm/files/0085-drm-fix-multi-GPU-drmFreeDevices-memory-leak.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amdfalconx86/recipes-graphics/drm/files/0085-drm-fix-multi-GPU-drmFreeDevices-memory-leak.patch')
-rw-r--r--meta-amdfalconx86/recipes-graphics/drm/files/0085-drm-fix-multi-GPU-drmFreeDevices-memory-leak.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/meta-amdfalconx86/recipes-graphics/drm/files/0085-drm-fix-multi-GPU-drmFreeDevices-memory-leak.patch b/meta-amdfalconx86/recipes-graphics/drm/files/0085-drm-fix-multi-GPU-drmFreeDevices-memory-leak.patch
deleted file mode 100644
index a7e8721f..00000000
--- a/meta-amdfalconx86/recipes-graphics/drm/files/0085-drm-fix-multi-GPU-drmFreeDevices-memory-leak.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 9fbef91c92df8da1732bfc8584d6937fcab63bf8 Mon Sep 17 00:00:00 2001
-From: Qiang Yu <Qiang.Yu@amd.com>
-Date: Thu, 14 Jul 2016 11:39:42 +0800
-Subject: [PATCH 085/117] drm: fix multi GPU drmFreeDevices memory leak
-
-When in multi GPU case, devices array may have some
-NULL "hole" in between two devices. So check all
-array elements and free non-NULL device.
-
-Change-Id: Ifc32d240f895059bc4b19138cb81de38d99fb88a
-Signed-off-by: Qiang Yu <Qiang.Yu@amd.com>
-Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
----
- xf86drm.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/xf86drm.c b/xf86drm.c
-index 19001db..32bedeb 100644
---- a/xf86drm.c
-+++ b/xf86drm.c
-@@ -2992,8 +2992,9 @@ void drmFreeDevices(drmDevicePtr devices[], int count)
- if (devices == NULL)
- return;
-
-- for (i = 0; i < count && devices[i] != NULL; i++)
-- drmFreeDevice(&devices[i]);
-+ for (i = 0; i < count; i++)
-+ if (devices[i])
-+ drmFreeDevice(&devices[i]);
- }
-
- static int drmProcessPciDevice(drmDevicePtr *device, const char *d_name,
---
-2.7.4
-