radeon: silence valgrind warnings by zeroing memory
parent
1443bea488
commit
8420743301
|
@ -252,7 +252,7 @@ static int bo_set_tiling(struct radeon_bo_int *boi, uint32_t tiling_flags,
|
|||
static int bo_get_tiling(struct radeon_bo_int *boi, uint32_t *tiling_flags,
|
||||
uint32_t *pitch)
|
||||
{
|
||||
struct drm_radeon_gem_set_tiling args;
|
||||
struct drm_radeon_gem_set_tiling args = {};
|
||||
int r;
|
||||
|
||||
args.handle = boi->handle;
|
||||
|
|
|
@ -517,7 +517,7 @@ static struct radeon_cs_funcs radeon_cs_gem_funcs = {
|
|||
|
||||
static int radeon_get_device_id(int fd, uint32_t *device_id)
|
||||
{
|
||||
struct drm_radeon_info info;
|
||||
struct drm_radeon_info info = {};
|
||||
int r;
|
||||
|
||||
*device_id = 0;
|
||||
|
|
Loading…
Reference in New Issue