diff options
author | Marek Olšák <marek.olsak@amd.com> | 2016-08-17 19:09:38 +0200 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2016-09-05 15:43:22 +0200 |
commit | c65377977597e1d3a317aa5022ac7d3bc0f6ff83 (patch) | |
tree | 581111d7bca430d82596fd0248c3143b2f492121 /amdgpu | |
parent | 77bc69ae9cb2a719ae5142b4b91e6dc657e4c119 (diff) | |
download | libdrm-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.c | 2 |
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)); |