Re: [PATCH] drm/i915/vma: Fix a memory leak in i915_vma_pin_ww()

From: Andi Shyti

Date: Thu Nov 19 2026 - 17:09:05 EST


Hi Haoxiang,

On Wed, Nov 18, 2026 at 11:32:05PM +0800, Haoxiang Li wrote:
> i915_vma_pin_ww() allocates bind work before retrieving the object's
> moving fence. If the lookup fails, it jumps to err_rpm, bypassing the
> fence commit at err_fence and leaking the work allocation.
>
> Jump to err_fence instead so the fence callbacks can release the work.
>
> Fixes: 8ec5c0006c50 ("Merge tag 'drm-intel-next-2022-05-20' of git://anongit.freedesktop.org/drm/drm-intel into drm-intel-gt-next")

that's weird to use the a merge commit as fixes, but that's what
it is.

> Signed-off-by: Haoxiang Li <haoxiang_li2024@xxxxxxx>

Reviewed-by: Andi Shyti <andi.shyti@xxxxxxxxxxxxxxx>

Thanks,
Andi