Skip to content

Commit 2c72cc1

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu/atomfirmware: silence UBSAN warning
commit d041726 upstream. This is a variable sized array. Link: https://lists.freedesktop.org/archives/amd-gfx/2024-June/110420.html Tested-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7db5411 commit 2c72cc1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/include/atomfirmware.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ struct atom_gpio_pin_lut_v2_1
734734
{
735735
struct atom_common_table_header table_header;
736736
/*the real number of this included in the structure is calcualted by using the (whole structure size - the header size)/size of atom_gpio_pin_lut */
737-
struct atom_gpio_pin_assignment gpio_pin[8];
737+
struct atom_gpio_pin_assignment gpio_pin[];
738738
};
739739

740740

0 commit comments

Comments
 (0)