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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Tvrtko Ursulin (2020-11-13 13:25:10)
> From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
> 
> 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@xxxxxxxxx>
> Fixes: 452420d22d5b ("drm/i915: Fuse per-context workaround handling with the common framework")
> Reported-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Reviewed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux