diff options
| author | Guchun Chen <[email protected]> | 2023-04-26 01:46:54 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-06-09 13:29:58 +0000 |
| commit | 967a66396e4668ef314e06a0391e67aa1cf6d058 (patch) | |
| tree | 1609f90a43c97159e0c5bb42b638d2881811a250 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
| parent | drm/amd/amdgpu: Fix errors & warnings in amdgpu _bios, _cs, _dma_buf, _fence.c (diff) | |
| download | kernel-967a66396e4668ef314e06a0391e67aa1cf6d058.tar.gz kernel-967a66396e4668ef314e06a0391e67aa1cf6d058.zip | |
drm/amdgpu: drop redundant sched job cleanup when cs is aborted
Once command submission failed due to userptr invalidation in
amdgpu_cs_submit, legacy code will perform cleanup of scheduler
job. However, it's not needed at all, as former commit has integrated
job cleanup stuff into amdgpu_job_free. Otherwise, because of double
free, a NULL pointer dereference will occur in such scenario.
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2457
Fixes: f7d66fb2ea43 ("drm/amdgpu: cleanup scheduler job initialization v2")
Signed-off-by: Guchun Chen <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions
