drm/amd: Fix UBSAN array-index-out-of-bounds for Polaris and Tonga
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 4 Oct 2023 20:46:44 +0000 (15:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Oct 2023 20:47:23 +0000 (16:47 -0400)
commit0f0e59075b5c22f1e871fbd508d6e4f495048356
treeb11607e796d54626a284d5398864d006f3a7c95a
parentc63079c61177ba1b17fa05c6875699a36924fe39
drm/amd: Fix UBSAN array-index-out-of-bounds for Polaris and Tonga

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

Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2036742
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/amd/pm/powerplay/hwmgr/pptable_v1_0.h