summaryrefslogtreecommitdiff
path: root/tests/kms_ccs.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-05-18 23:01:29 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2018-05-23 18:42:46 +0300
commitee5043fada2917aee96469e4319c6ab48267adde (patch)
treef016363185465368fe0ee0500a1396ffb5322dfa /tests/kms_ccs.c
parent0b381c7d1067a4fe520b72d4d391d4920834cbe0 (diff)
tests/kms_ccs: Don't populate igt_fb structs with stack garbage
Clear the igt_fb struct to make sure no stack garbage is left in any members we don't explicitly initialize. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> #irc
Diffstat (limited to 'tests/kms_ccs.c')
-rw-r--r--tests/kms_ccs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
index 63298f13..e1ee5880 100644
--- a/tests/kms_ccs.c
+++ b/tests/kms_ccs.c
@@ -280,6 +280,8 @@ static void generate_fb(data_t *data, struct igt_fb *fb,
int ret;
uint32_t ccs_handle;
+ memset(fb, 0, sizeof(*fb));
+
/* Use either compressed or Y-tiled to test. However, given the lack of
* available bandwidth, we use linear for the primary plane when
* testing sprites, since we cannot fit two CCS planes into the