Skip to content

Commit 9f8fd53

Browse files
peppsacalexdeucher
authored andcommitted
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 ec49374)
1 parent 22a36e6 commit 9f8fd53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static int amdgpu_ctx_init_entity(struct amdgpu_ctx *ctx, u32 hw_ip,
236236
r = amdgpu_xcp_select_scheds(adev, hw_ip, hw_prio, fpriv,
237237
&num_scheds, &scheds);
238238
if (r)
239-
goto cleanup_entity;
239+
goto error_free_entity;
240240
}
241241

242242
/* disable load balance if the hw engine retains context among dependent jobs */

0 commit comments

Comments
 (0)