summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-06-04 18:57:50 +0200
committerMarek Olšák <marek.olsak@amd.com>2015-06-05 11:14:54 +0200
commite1831443e4ea5eb28d93aa827343a0ebf5c158d7 (patch)
tree4a7e6bf6b67188780e8a0608756abbff64da242b
parentadd229652240b8b7548ebf3fff968d66be135626 (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 72dd6bbd..e882aad2 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -101,7 +101,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,