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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:06:57 +0000 (17:06 +0000)
commitd0725232da777840703f5f1e22f2e3081d712aa4
treeea03b9bea09d87c492416e4c9174e2ae9560c264
parentfc9ac0e8e0bcb3740c6eaad3a1a50c20016d422b
drm/amd: Fix UBSAN array-index-out-of-bounds for Polaris and Tonga

[ Upstream commit 0f0e59075b5c22f1e871fbd508d6e4f495048356 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/pptable_v1_0.h