diff options
| author | Tasos Sahanidis <[email protected]> | 2024-05-31 16:23:30 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-06-05 17:43:34 +0000 |
| commit | c6c4dd54012551cce5cde408b35468f2c62b0cce (patch) | |
| tree | 62d67f2d23974ad8fd17598c7d1d32da906ee152 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | drm/amd: Fix shutdown (again) on some SMU v13.0.4/11 platforms (diff) | |
| download | kernel-c6c4dd54012551cce5cde408b35468f2c62b0cce.tar.gz kernel-c6c4dd54012551cce5cde408b35468f2c62b0cce.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 <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions
