aboutsummaryrefslogtreecommitdiffstats
path: root/amdgpu
diff options
context:
space:
mode:
authorMarek Olšák2015-05-06 11:59:02 -0500
committerAlex Deucher2015-08-05 12:47:49 -0500
commit2d588797f1958f6ef287bc844904036f6d385ad3 (patch)
tree04cf2eb5e392dd0ff355116edfc12d6296292e11 /amdgpu
parent4b39a8e7cfff20a9cf8512541b9fc764b42da974 (diff)
downloadexternal-libdrm-2d588797f1958f6ef287bc844904036f6d385ad3.tar.gz
external-libdrm-2d588797f1958f6ef287bc844904036f6d385ad3.tar.xz
external-libdrm-2d588797f1958f6ef287bc844904036f6d385ad3.zip
amdgpu: fix a valgrind warning
==10307== Conditional jump or move depends on uninitialised value(s) ==10307== at 0xB9F4CFA: amdgpu_device_initialize (amdgpu_device.c:193) Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'amdgpu')
-rw-r--r--amdgpu/amdgpu_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c
index b50ce26a..048a9093 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -133,7 +133,7 @@ int amdgpu_device_initialize(int fd,
133 int r; 133 int r;
134 int flag_auth = 0; 134 int flag_auth = 0;
135 int flag_authexist=0; 135 int flag_authexist=0;
136 uint32_t accel_working; 136 uint32_t accel_working = 0;
137 137
138 *device_handle = NULL; 138 *device_handle = NULL;
139 139