]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: fixup ttm_bo_add_move_fence v2
authorMatthew Auld <matthew.auld@intel.com>
Wed, 13 Apr 2022 08:21:33 +0000 (09:21 +0100)
committerChristian König <christian.koenig@amd.com>
Wed, 13 Apr 2022 08:53:09 +0000 (10:53 +0200)
commit0cf46cb9402c6ca2c57a9f541429e6bdbfeb76c5
tree695de3f42db3b9f4f09ce91bebdd047d36c1a9b3
parent83e1d9611628543274694cdd42b6c697c00fbb70
drm/ttm: fixup ttm_bo_add_move_fence v2

It looks like we still need to call dma_fence_put() on the man->move,
otherwise we just end up leaking it, leading to fireworks later.

v2(Daniel):
  - Simplify the function tail

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5689
Fixes: 3b93dce4dd40 ("drm/ttm: remove bo->moving")
Cc: Christian König <christian.koenig@amd.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220413082133.272445-1-matthew.auld@intel.com
drivers/gpu/drm/ttm/ttm_bo.c