drm/radeon: Fix UBSAN array-index-out-of-bounds for Radeon HD 5430
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 4 Oct 2023 20:22:53 +0000 (15:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Oct 2023 20:47:08 +0000 (16:47 -0400)
commitc63079c61177ba1b17fa05c6875699a36924fe39
treec8bb9c18e0ee69c4272ef5cee80f3aa24747f888
parent760efbca74a405dc439a013a5efaa9fadc95a8c3
drm/radeon: Fix UBSAN array-index-out-of-bounds for Radeon HD 5430

For pptable structs that use flexible array sizes, use flexible arrays.

Suggested-by: Felix Held <felix.held@amd.com>
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2894
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/pptable.h