[igt-dev] [PATCH i-g-t] tests/i915/gem_exec_latency: fix uninitialized variable
Ser, Simon
simon.ser at intel.com
Thu Mar 28 07:59:04 UTC 2019
On Thu, 2019-03-21 at 09:05 +0000, Chris Wilson wrote:
> Quoting Simon Ser (2019-03-21 08:59:38)
> > 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;
>
> I know I reviewed a patch by Petri with the same fix...
> -Chris
Indeed: https://patchwork.freedesktop.org/patch/291893/
I'll mark this one as superseeded.
More information about the igt-dev
mailing list