diff options
author | Marek Olšák <marek.olsak@amd.com> | 2015-06-04 18:57:50 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-05 13:47:51 -0400 |
commit | 7d7f25c938439bfe977bb51614ce4be80ffd3f45 (patch) | |
tree | 437ace1b64cc9e70f5aac766a8e23c5f4d97f3ea /amdgpu | |
parent | 34e1250e3769f33b92a12f535f4fca755388ee10 (diff) |
amdgpu: fix valgrind warnings
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'amdgpu')
-rw-r--r-- | amdgpu/amdgpu_device.c | 2 | ||||
-rw-r--r-- | 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, |