]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ttm: fix error handling in ttm_buffer_object_transfer
authorChristian König <christian.koenig@amd.com>
Fri, 13 Jun 2025 11:16:38 +0000 (13:16 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 30 Jun 2025 11:26:28 +0000 (13:26 +0200)
commit97e000acf2e20a86a50a0ec8c2739f0846f37509
tree0bcd9c4b0d2f166225ab3e5f80f2bf2c351e0b84
parent2b95a7db6e0f75587bffddbb490399cbb87e4985
drm/ttm: fix error handling in ttm_buffer_object_transfer

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: c8d4c18bfbc4a ("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
drivers/gpu/drm/ttm/ttm_bo_util.c