Skip to content
Commit c6c4dd54 authored by Tasos Sahanidis's avatar Tasos Sahanidis Committed by Alex Deucher
Browse files

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: default avatarTasos Sahanidis <tasos@tasossah.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 267cace5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment