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 <[email protected]> Acked-by: Lijo Lazar <[email protected]> Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 9792b7c commit 9482552

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)