[Intel-gfx] [CI] drm/i915: Fix memleak in runtime wakeref tracking

Chris Wilson chris at chris-wilson.co.uk
Tue Jul 2 15:01:04 UTC 2019


Quoting Mika Kuoppala (2019-07-01 11:44:42)
> If we untrack wakerefs, the actual count may reach zero.
> However the krealloced owners array is still there and
> needs to be taken care of. Free the owners unconditionally
> to fix the leak.
> 
> Fixes: bd780f37a361 ("drm/i915: Track all held rpm wakerefs")
> Reported-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
> Cc: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Signed-off-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>
> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>

And pushed so that we can rule out any undue influence elsewhere in CI.
Thanks for catching my mistake,
-Chris


More information about the Intel-gfx mailing list