]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd: Fix UBSAN array-index-out-of-bounds for SMU7
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 4 Oct 2023 20:22:52 +0000 (15:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Oct 2023 20:46:54 +0000 (16:46 -0400)
commit760efbca74a405dc439a013a5efaa9fadc95a8c3
tree4498a444931a92f61e7d7904d27a5292b78c347f
parentc8e7df374ba2ce715ed7f3ceba34efdbfffcb0a9
drm/amd: Fix UBSAN array-index-out-of-bounds for SMU7

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/2874
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/include/pptable.h
drivers/gpu/drm/amd/pm/powerplay/hwmgr/pptable_v1_0.h