Commit 303ff639 authored by Christian König's avatar Christian König Committed by Greg Kroah-Hartman
Browse files

UPSTREAM: drm/ttm: fix error handling in ttm_buffer_object_transfer



commit 97e000ac 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.

Change-Id: I63344e129cdd19440194785780cefcbc085c23eb
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
Fixes: c8d4c18b ("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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 38df1a50)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 2fa1d9a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment