]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: fix error handling in amdgpu_copy_buffer
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 24 Nov 2025 17:25:04 +0000 (18:25 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 19:31:15 +0000 (14:31 -0500)
commitbc0515ece3d50ea61f76795bcdb42b09640c11e1
treed8d6f1989dacb01a1068ae231048d128ec02859e
parent582c65e85498976ea8ec40c23b423311ea53cd94
drm/amdgpu: fix error handling in amdgpu_copy_buffer

drm_sched_job_add_resv_dependencies can fail in amdgpu_ttm_prepare_job.
In this case we need to use amdgpu_job_free to release memory.

---
v4: moved job pointer clearing to a different patchset
---

Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c