summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-06-04 18:57:50 +0200
committerAlex Deucher <alexander.deucher@amd.com>2015-07-30 00:11:11 -0400
commit61588443e17d9a34ae2435d583dec1d32d8acfa8 (patch)
treeea0a55fbd650a9146f325ad4f014e5242d62d0c5
parentc4ae2a7dc6ed03c38e3ee058f79c009e31ec309d (diff)
amdgpu: fix valgrind warnings
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--amdgpu/amdgpu_device.c2
-rw-r--r--amdgpu/amdgpu_gpu_info.c2
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,