aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorMatthew Brost <[email protected]>2024-06-05 05:50:41 +0000
committerMatthew Brost <[email protected]>2024-06-06 16:22:20 +0000
commit5d30de4311d2d4165e78dc021c5cacb7496b3491 (patch)
treef6cfacbfb10cdd11e06c57c87e1be71b60bcdecd /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/xe/vf: Custom GT restart (diff)
downloadkernel-5d30de4311d2d4165e78dc021c5cacb7496b3491.tar.gz
kernel-5d30de4311d2d4165e78dc021c5cacb7496b3491.zip
drm/xe: Do not dereference NULL job->fence in trace points
job->fence is not assigned until xe_sched_job_arm(), check for job->fence in xe_sched_job_seqno() so any usage of this function (trace points) do not result in NULL ptr dereference. Also check job->fence before assigning error in job trace points. Fixes: 0ac7a2c745e8 ("drm/xe: Don't initialize fences at xe_sched_job_create()") Cc: Thomas Hellström <[email protected]> Signed-off-by: Matthew Brost <[email protected]> Reviewed-by: Lucas De Marchi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions