From 7d7f25c938439bfe977bb51614ce4be80ffd3f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 4 Jun 2015 18:57:50 +0200 Subject: [PATCH] amdgpu: fix valgrind warnings Reviewed-by: Alex Deucher --- amdgpu/amdgpu_device.c | 2 +- amdgpu/amdgpu_gpu_info.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c index 212e7075..44048396 100644 --- a/amdgpu/amdgpu_device.c +++ b/amdgpu/amdgpu_device.c @@ -110,7 +110,7 @@ static int fd_compare(void *key1, void *key2) static int amdgpu_get_auth(int fd, int *auth) { int r = 0; - drm_client_t client; + drm_client_t client = {}; if (drmGetNodeTypeFromFd(fd) == DRM_NODE_RENDER) *auth = 0; diff --git a/amdgpu/amdgpu_gpu_info.c b/amdgpu/amdgpu_gpu_info.c index 793062b1..df193ee2 100644 --- a/amdgpu/amdgpu_gpu_info.c +++ b/amdgpu/amdgpu_gpu_info.c @@ -230,7 +230,7 @@ int amdgpu_query_heap_info(amdgpu_device_handle dev, uint32_t flags, struct amdgpu_heap_info *info) { - struct drm_amdgpu_info_vram_gtt vram_gtt_info; + struct drm_amdgpu_info_vram_gtt vram_gtt_info = {}; int r; r = amdgpu_query_info(dev, AMDGPU_INFO_VRAM_GTT,