]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:35:13 +0000 (18:35 +0200)
commitdb7402d78e7c369a765f3c81b68b45ebaee66070
tree1305e75016d4e77baccdcaafc63f268052ce7060
parentc64f5310530baf75328292f9b9f3f2961d185183
drm/ttm: fix error handling in ttm_buffer_object_transfer

commit 97e000acf2e20a86a50a0ec8c2739f0846f37509 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: 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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/ttm/ttm_bo_util.c