Re: [PATCH] drm/ttm: fix memleak in ttm_transfered_destroy

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

 



On Wed, Oct 20, 2021 at 1:32 PM Christian König
<ckoenig.leichtzumerken@xxxxxxxxx> wrote:
>
> We need to cleanup the fences for ghost objects as well.
>
> Signed-off-by: Christian König <christian.koenig@xxxxxxx>
> CC: <stable@xxxxxxxxxxxxxxx>

Does this fix this bug?
https://bugzilla.kernel.org/show_bug.cgi?id=214029

Alex

> ---
>  drivers/gpu/drm/ttm/ttm_bo_util.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c
> index 82af095f6b81..f37a8c53b35f 100644
> --- a/drivers/gpu/drm/ttm/ttm_bo_util.c
> +++ b/drivers/gpu/drm/ttm/ttm_bo_util.c
> @@ -190,6 +190,7 @@ static void ttm_transfered_destroy(struct ttm_buffer_object *bo)
>         struct ttm_transfer_obj *fbo;
>
>         fbo = container_of(bo, struct ttm_transfer_obj, base);
> +       dma_resv_fini(&fbo->base.base._resv);
>         ttm_bo_put(fbo->bo);
>         kfree(fbo);
>  }
> --
> 2.25.1
>




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux