diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-12-30 00:31:51 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-12-30 00:31:51 +0000 |
commit | 94469b1ec969f5b3c0852493708ecb341922011b (patch) | |
tree | b7c4d965a92c8ab89d5c74899012f8ea3049ed5c | |
parent | 2e9b11a3c5cec64ca134830482256b0c9441cbd7 (diff) |
drm/amdgpu: don't access invalid sched
From Pierre-Eric Pelloux-Prayer
da6b2c626ae73c303378ce9eaf6e3eaf16c9925a in linux-6.6.y/6.6.68
a93b1020eb9386d7da11608477121b10079c076a in mainline linux
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c index 99dd86337e8..49a6b6b8884 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c @@ -159,7 +159,6 @@ void amdgpu_job_set_resources(struct amdgpu_job *job, struct amdgpu_bo *gds, void amdgpu_job_free_resources(struct amdgpu_job *job) { - struct amdgpu_ring *ring = to_amdgpu_ring(job->base.sched); struct dma_fence *f; unsigned i; @@ -172,7 +171,7 @@ void amdgpu_job_free_resources(struct amdgpu_job *job) f = NULL; for (i = 0; i < job->num_ibs; ++i) - amdgpu_ib_free(ring->adev, &job->ibs[i], f); + amdgpu_ib_free(NULL, &job->ibs[i], f); } static void amdgpu_job_free_cb(struct drm_sched_job *s_job) |