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

Chris Wilson
2019-03-21T09:05:42Z

Quoting Simon Ser (2019-03-21 08:59:38)
> Signed-off-by: Simon Ser <simon.ser@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;

I know I reviewed a patch by Petri with the same fix...
-Chris