]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amdgpu/atomfirmware: silence UBSAN warning
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 1 Jul 2024 16:50:10 +0000 (12:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Jul 2024 22:34:05 +0000 (18:34 -0400)
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
drivers/gpu/drm/amd/include/atomfirmware.h

index 5716918372001a394967b3dcf620e623f65e9467..09cbc3afd6d89d815aeb212f38ddb4edaa6e91fa 100644 (file)
@@ -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[];
 };