amdgpu: fix valgrind warnings

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
main
Marek Olšák 2015-06-04 18:57:50 +02:00 committed by Alex Deucher
parent 34e1250e37
commit 7d7f25c938
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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,