Skip to content

Commit 8a65661

Browse files
Stanley.Yangalexdeucher
authored andcommitted
drm/amdgpu: Fix delete nodes that have been relesed
Fix delete nodes that it has been freed. Fixes: 5b1270b ("drm/amdgpu: add ras_err_info to identify RAS error source") Signed-off-by: Stanley.Yang <[email protected]> Reviewed-by: Yang Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent ce43a5f commit 8a65661

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3503,10 +3503,8 @@ void amdgpu_ras_error_data_fini(struct ras_err_data *err_data)
35033503
{
35043504
struct ras_err_node *err_node, *tmp;
35053505

3506-
list_for_each_entry_safe(err_node, tmp, &err_data->err_node_list, node) {
3506+
list_for_each_entry_safe(err_node, tmp, &err_data->err_node_list, node)
35073507
amdgpu_ras_error_node_release(err_node);
3508-
list_del(&err_node->node);
3509-
}
35103508
}
35113509

35123510
static struct ras_err_node *amdgpu_ras_error_find_node_by_id(struct ras_err_data *err_data,

0 commit comments

Comments
 (0)