Skip to content

Commit 9482552

Browse files
Jack Xiaoalexdeucher
authored andcommitted
drm/amdgpu/mes: fix use-after-free issue
Delete fence fallback timer to fix the ramdom use-after-free issue. v2: move to amdgpu_mes.c Signed-off-by: Jack Xiao <Jack.Xiao@amd.com> Acked-by: Lijo Lazar <lijo.lazar@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 9792b7c commit 9482552

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,6 +1132,7 @@ void amdgpu_mes_remove_ring(struct amdgpu_device *adev,
11321132
return;
11331133

11341134
amdgpu_mes_remove_hw_queue(adev, ring->hw_queue_id);
1135+
del_timer_sync(&ring->fence_drv.fallback_timer);
11351136
amdgpu_ring_fini(ring);
11361137
kfree(ring);
11371138
}

0 commit comments

Comments
 (0)