amdgpu: fix valgrind warnings caused by amdgpu_query_firmware_version

main
Marek Olšák 2016-08-17 19:09:38 +02:00
parent 77bc69ae9c
commit c653779775
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ int amdgpu_query_firmware_version(amdgpu_device_handle dev, unsigned fw_type,
uint32_t *version, uint32_t *feature) uint32_t *version, uint32_t *feature)
{ {
struct drm_amdgpu_info request; struct drm_amdgpu_info request;
struct drm_amdgpu_info_firmware firmware; struct drm_amdgpu_info_firmware firmware = {};
int r; int r;
memset(&request, 0, sizeof(request)); memset(&request, 0, sizeof(request));