[igt-dev] [PATCH i-g-t] sw_sync: Initialise struct before use

Chris Wilson chris at chris-wilson.co.uk
Thu Jan 31 09:16:51 UTC 2019


Quoting Jani Nikula (2019-01-31 09:10:53)
> On Wed, 30 Jan 2019, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> > sw_sync: ../lib/igt_core.c:1592: __igt_fork_helper: Assertion `!proc->running'
> >
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108889
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> 
> So the compiler sees the variable is uninitialized, but it's being
> passed to a function... jolly good, that must do the initialization. :/
> 
> I trust you checked the other call sites.

In this file only.
-Chris


More information about the igt-dev mailing list