]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: jump to the correct label on failure
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 4 Nov 2025 09:42:45 +0000 (10:42 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Nov 2025 03:49:46 +0000 (22:49 -0500)
commit9f8fd538e244b87e4556833da51ddd986f50cc81
tree22483ec608ffdef41cb51bb01ca73e64faa0d737
parent22a36e660d014925114feb09a2680bb3c2d1e279
drm/amdgpu: jump to the correct label on failure

drm_sched_entity_init wasn't called yet, so the only thing to
do is to release allocated memory.
This doesn't fix any bug since entity is zero allocated and
drm_sched_entity_fini does nothing in this case.

Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit ec49374ccb8da86b465beaf09c367f3dfd648d8f)
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c