Skip to content
Snippets Groups Projects
Commit 2c29c245 authored by Marek Olšák's avatar Marek Olšák
Browse files

r600g: zero memory of ioctl parameters

Fixes valgrind warning.
(cherry picked from commit daf66044)
parent 4cbaa228
No related branches found
No related tags found
No related merge requests found
......@@ -186,7 +186,7 @@ static int eg_interpret_tiling(struct radeon *radeon, uint32_t tiling_config)
static int radeon_drm_get_tiling(struct radeon *radeon)
{
struct drm_radeon_info info;
struct drm_radeon_info info = {};
int r;
uint32_t tiling_config = 0;
......@@ -208,7 +208,7 @@ static int radeon_drm_get_tiling(struct radeon *radeon)
static int radeon_get_clock_crystal_freq(struct radeon *radeon)
{
struct drm_radeon_info info;
struct drm_radeon_info info = {};
uint32_t clock_crystal_freq;
int r;
......@@ -226,7 +226,7 @@ static int radeon_get_clock_crystal_freq(struct radeon *radeon)
static int radeon_get_num_backends(struct radeon *radeon)
{
struct drm_radeon_info info;
struct drm_radeon_info info = {};
uint32_t num_backends;
int r;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment