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:19:40 +0000 (17:19 +0000)
commitb3b8b7c040cf069da7afe11c5bd73b870b8f3d18
treed9a654659123de6894b3761f2cbcbd1445eaba6a
parent92a775e7c9707aed28782bafe636bf87675f5a97
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