[igt-dev] [PATCH i-g-t] tests/i915/gem_exec_latency: fix uninitialized variable

Simon Ser simon.ser at intel.com
Thu Mar 21 08:59:38 UTC 2019


Signed-off-by: Simon Ser <simon.ser at intel.com>
---
 tests/i915/gem_exec_latency.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/gem_exec_latency.c b/tests/i915/gem_exec_latency.c
index 6dd191ec..1b022df5 100644
--- a/tests/i915/gem_exec_latency.c
+++ b/tests/i915/gem_exec_latency.c
@@ -597,7 +597,7 @@ rthog_latency_on_ring(int fd, unsigned int engine, const char *name, unsigned in
 	for (unsigned int child = 0; child < nengine; child++) {
 		struct rt_pkt normal = results[NPASS * child + 1];
 		igt_stats_t stats;
-		double variance;
+		double variance = 0.0;
 
 		igt_stats_init_with_size(&stats, NPASS);
 
-- 
2.21.0

---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.



More information about the igt-dev mailing list