amdgpu: fix valgrind warnings
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>main
parent
34e1250e37
commit
7d7f25c938
|
@ -110,7 +110,7 @@ static int fd_compare(void *key1, void *key2)
|
||||||
static int amdgpu_get_auth(int fd, int *auth)
|
static int amdgpu_get_auth(int fd, int *auth)
|
||||||
{
|
{
|
||||||
int r = 0;
|
int r = 0;
|
||||||
drm_client_t client;
|
drm_client_t client = {};
|
||||||
|
|
||||||
if (drmGetNodeTypeFromFd(fd) == DRM_NODE_RENDER)
|
if (drmGetNodeTypeFromFd(fd) == DRM_NODE_RENDER)
|
||||||
*auth = 0;
|
*auth = 0;
|
||||||
|
|
|
@ -230,7 +230,7 @@ int amdgpu_query_heap_info(amdgpu_device_handle dev,
|
||||||
uint32_t flags,
|
uint32_t flags,
|
||||||
struct amdgpu_heap_info *info)
|
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;
|
int r;
|
||||||
|
|
||||||
r = amdgpu_query_info(dev, AMDGPU_INFO_VRAM_GTT,
|
r = amdgpu_query_info(dev, AMDGPU_INFO_VRAM_GTT,
|
||||||
|
|
Loading…
Reference in New Issue