linux/drivers/gpu/drm/ttm
Christian König 38df1a5053 drm/ttm: fix error handling in ttm_buffer_object_transfer
commit 97e000acf2 upstream.

Unlocking the resv object was missing in the error path, additionally to
that we should move over the resource only after the fence slot was
reserved.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Fixes: c8d4c18bfb ("dma-buf/drivers: make reserving a shared slot mandatory v4")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20250616130726.22863-3-christian.koenig@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-07-17 18:37:11 +02:00
..
tests drm/ttm: Allow TTM LRU list nodes of different types 2024-07-09 12:37:32 +02:00
Makefile drm/ttm: Introduce KUnit test 2023-08-09 18:04:22 +02:00
ttm_agp_backend.c drm/ttm: Add a parameter to add extra pages into ttm_tt 2022-04-02 08:22:48 +05:30
ttm_bo.c drm-misc-next for v6.12: 2024-08-08 18:58:46 +02:00
ttm_bo_util.c drm/ttm: fix error handling in ttm_buffer_object_transfer 2025-07-17 18:37:11 +02:00
ttm_bo_vm.c - Nick Piggin's "shoot lazy tlbs" series, to improve the peformance of 2023-04-27 19:42:02 -07:00
ttm_device.c drm/ttm: Use the LRU walker helper for swapping 2024-07-09 12:41:46 +02:00
ttm_execbuf_util.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
ttm_module.c LoongArch: Add writecombine support for drm 2022-06-03 20:09:27 +08:00
ttm_module.h drm/ttm: add ttm_sys_manager v3 2021-05-03 12:50:41 +02:00
ttm_pool.c drm/ttm: Allow direct reclaim to allocate local memory v2 2024-07-23 09:52:23 +02:00
ttm_range_manager.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
ttm_resource.c drm/ttm: Use the LRU walker for eviction 2024-07-09 12:42:18 +02:00
ttm_sys_manager.c drm/ttm: add back a reference to the bdev to the res manager 2022-01-26 15:29:24 +01:00
ttm_tt.c drm/ttm/tests: Add tests for ttm_tt_populate 2024-06-24 16:01:23 +05:30