[Intel-gfx] [PATCH] drm/i915: Avoid memory leak with more than 16 workarounds on a list

Chris Wilson chris at chris-wilson.co.uk
Fri Nov 13 13:28:25 UTC 2020


Quoting Tvrtko Ursulin (2020-11-13 13:25:10)
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> I forgot to free the old list when growing past 16 entries.
> 
> Luckily, as much as I checked, none of the current platforms has more than
> 16 workarounds on a single list.

And I couldn't see any magics, such as the first wal->list being
embedded, so it looks straightforward.

> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Fixes: 452420d22d5b ("drm/i915: Fuse per-context workaround handling with the common framework")
> Reported-by: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris


More information about the Intel-gfx mailing list