aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorGuchun Chen <[email protected]>2019-08-08 06:54:41 +0000
committerAlex Deucher <[email protected]>2019-08-12 17:47:48 +0000
commita2b459947b1e8e9b8d8cb13640bc019ee932ea30 (patch)
treeef7d9ea6dd29511703a83744f7956fd82fcdab6e /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentdrm/amd/powerplay: update smu11_driver_if_navi10.h (diff)
downloadkernel-a2b459947b1e8e9b8d8cb13640bc019ee932ea30.tar.gz
kernel-a2b459947b1e8e9b8d8cb13640bc019ee932ea30.zip
drm/amdgpu: add check to avoid array bound issue
Sub_block_index can be passed from user level, so add one check before accessing the array first to prevent array index out of bound problem. Signed-off-by: Guchun Chen <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions