summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c
diff options
context:
space:
mode:
authorTasos Sahanidis <tasos@tasossah.com>2024-05-31 19:23:30 +0300
committerAlex Deucher <alexander.deucher@amd.com>2024-06-05 11:02:24 -0400
commit98f9e5ea474d834eed2e1fb163ef3ab956ef8205 (patch)
tree82e044979b5d079664c6cf05798a7641ebec8ccb /drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c
parent34a6aa4e12dfa7a9cac031193bfc586bc015adf3 (diff)
downloadlinux-98f9e5ea474d834eed2e1fb163ef3ab956ef8205.tar.gz
linux-98f9e5ea474d834eed2e1fb163ef3ab956ef8205.tar.bz2
linux-98f9e5ea474d834eed2e1fb163ef3ab956ef8205.zip
drm/amdgpu/pptable: Fix UBSAN array-index-out-of-bounds
Flexible arrays used [1] instead of []. Replace the former with the latter to resolve multiple UBSAN warnings observed on boot with a BONAIRE card. In addition, use the __counted_by attribute where possible to hint the length of the arrays to the compiler and any sanitizers. Signed-off-by: Tasos Sahanidis <tasos@tasossah.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c')
0 files changed, 0 insertions, 0 deletions