Skip to content

Commit bbc920f

Browse files
committed
Revert "drm/ttm: fix memleak in ttm_transfered_destroy"
This reverts commit c21b400 which is commit 0db55f9 upstream. Seems that the older kernels can not handle this fix because, to quote Christian: The problem is this memory leak could potentially happen with 5.10 as wel, just much much much less likely. But my guess is that 5.10 is so buggy that when the leak does NOT happen we double free and obviously causing a crash. So it needs to be reverted. Link: https://lore.kernel.org/r/1a1cc125-9314-f569-a6c4-40fc4509a377@amd.com Cc: Christian König <christian.koenig@amd.com> Cc: Erhard F. <erhard_f@mailbox.org> Cc: Erhard F. <erhard_f@mailbox.org> Cc: Huang Rui <ray.huang@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 6d67b2a commit bbc920f

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/gpu/drm/ttm/ttm_bo_util.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ static void ttm_transfered_destroy(struct ttm_buffer_object *bo)
322322
struct ttm_transfer_obj *fbo;
323323

324324
fbo = container_of(bo, struct ttm_transfer_obj, base);
325-
dma_resv_fini(&fbo->base.base._resv);
326325
ttm_bo_put(fbo->bo);
327326
kfree(fbo);
328327
}

0 commit comments

Comments
 (0)