]> Gentwo Git Trees - linux/.git/commit
drm/amdgpu: clear job on failure in amdgpu_job_alloc(_with_ib)
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 24 Nov 2025 14:33:41 +0000 (15:33 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Nov 2025 16:25:29 +0000 (11:25 -0500)
commit723c1dd3629d2d6eb319247d4eaba9f7b78319fa
tree7ffd52b06479363dd21b13854e69409e1978ae22
parent5de8ce0f3709ad93ca5a579aa45cf1b52d72bc90
drm/amdgpu: clear job on failure in amdgpu_job_alloc(_with_ib)

If memory is freed we need to nullify the pointer or the caller
might call kfree again (eg: amdgpu_cs_parser_fini calls kfree on
all non-null job pointers).

Fixes: db36632ea51e ("drm/amdgpu: clean up and unify hw fence handling")
Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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_job.c