summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2024-07-01 12:50:10 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-07-11 12:51:17 +0200
commit2c72cc1c73d410ae4957eac30ecb63a4ad5462f1 (patch)
treeda65ec688369c281156f7f58efeb7288a7580e3b
parent7db5411c5d0bd9c29b8c2ad93c36b5c16ea46c9e (diff)
downloadlinux-stable-2c72cc1c73d410ae4957eac30ecb63a4ad5462f1.tar.gz
linux-stable-2c72cc1c73d410ae4957eac30ecb63a4ad5462f1.tar.bz2
linux-stable-2c72cc1c73d410ae4957eac30ecb63a4ad5462f1.zip
drm/amdgpu/atomfirmware: silence UBSAN warning
commit d0417264437a8fa05f894cabba5a26715b32d78e 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>
-rw-r--r--drivers/gpu/drm/amd/include/atomfirmware.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h b/drivers/gpu/drm/amd/include/atomfirmware.h
index 1acb2d2c5597..a34f064df336 100644
--- a/drivers/gpu/drm/amd/include/atomfirmware.h
+++ b/drivers/gpu/drm/amd/include/atomfirmware.h
@@ -734,7 +734,7 @@ struct atom_gpio_pin_lut_v2_1
{
struct atom_common_table_header table_header;
/*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 */
- struct atom_gpio_pin_assignment gpio_pin[8];
+ struct atom_gpio_pin_assignment gpio_pin[];
};