summaryrefslogtreecommitdiff
path: root/amdgpu
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2016-08-17 19:09:38 +0200
committerMarek Olšák <marek.olsak@amd.com>2016-09-05 15:43:22 +0200
commitc65377977597e1d3a317aa5022ac7d3bc0f6ff83 (patch)
tree581111d7bca430d82596fd0248c3143b2f492121 /amdgpu
parent77bc69ae9cb2a719ae5142b4b91e6dc657e4c119 (diff)
downloadlibdrm-c65377977597e1d3a317aa5022ac7d3bc0f6ff83.tar.gz
libdrm-c65377977597e1d3a317aa5022ac7d3bc0f6ff83.tar.bz2
libdrm-c65377977597e1d3a317aa5022ac7d3bc0f6ff83.zip
amdgpu: fix valgrind warnings caused by amdgpu_query_firmware_version
Diffstat (limited to 'amdgpu')
-rw-r--r--amdgpu/amdgpu_gpu_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/amdgpu/amdgpu_gpu_info.c b/amdgpu/amdgpu_gpu_info.c
index 0cc17f1f..3eecd798 100644
--- a/amdgpu/amdgpu_gpu_info.c
+++ b/amdgpu/amdgpu_gpu_info.c
@@ -119,7 +119,7 @@ int amdgpu_query_firmware_version(amdgpu_device_handle dev, unsigned fw_type,
uint32_t *version, uint32_t *feature)
{
struct drm_amdgpu_info request;
- struct drm_amdgpu_info_firmware firmware;
+ struct drm_amdgpu_info_firmware firmware = {};
int r;
memset(&request, 0, sizeof(request));