Skip to content

Commit 07ee43f

Browse files
Yang Wangalexdeucher
authored andcommitted
drm/amdgpu: fix ras err_data null pointer issue in amdgpu_ras.c
fix ras err_data null pointer issue in amdgpu_ras.c Fixes: 8cc0f56 ("drm/amdgpu: Support multiple error query modes") Signed-off-by: Yang Wang <kevinyang.wang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 923bbfe commit 07ee43f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ static int amdgpu_ras_query_error_status_helper(struct amdgpu_device *adev,
11881188
}
11891189

11901190
if (block_obj->hw_ops->query_ras_error_count)
1191-
block_obj->hw_ops->query_ras_error_count(adev, &err_data);
1191+
block_obj->hw_ops->query_ras_error_count(adev, err_data);
11921192

11931193
if ((info->head.block == AMDGPU_RAS_BLOCK__SDMA) ||
11941194
(info->head.block == AMDGPU_RAS_BLOCK__GFX) ||

0 commit comments

Comments
 (0)