diff options
author | 2023-12-26 15:32:19 +0530 | |
---|---|---|
committer | 2024-01-03 11:16:06 -0500 | |
commit | b8d55a90fd55b767c25687747e2b24abd1ef8680 (patch) | |
tree | 118ae6e7de62ddf0955b380aebe55e98efac250e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/amdgpu: Drop redundant unsigned >=0 comparision 'amdgpu_gfx_rlc_init_microcode()' (diff) | |
download | wireguard-linux-b8d55a90fd55b767c25687747e2b24abd1ef8680.tar.xz wireguard-linux-b8d55a90fd55b767c25687747e2b24abd1ef8680.zip |
drm/amdgpu: Fix possible NULL dereference in amdgpu_ras_query_error_status_helper()
Return invalid error code -EINVAL for invalid block id.
Fixes the below:
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1183 amdgpu_ras_query_error_status_helper() error: we previously assumed 'info' could be null (see line 1176)
Suggested-by: Hawking Zhang <Hawking.Zhang@amd.com>
Cc: Tao Zhou <tao.zhou1@amd.com>
Cc: Hawking Zhang <Hawking.Zhang@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions