aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2024-07-01 12:50:10 -0400
committerAlex Deucher <alexander.deucher@amd.com>2024-07-02 18:07:31 -0400
commit4ed6a3689caba239e6df18c60af9489001f481c3 (patch)
tree7af7ef9f4e90b96f392b27580052c62b67b00b73
parentdrm/amdgpu: fix out of bounds access in gfx11 during ip dump (diff)
downloadwireguard-linux-4ed6a3689caba239e6df18c60af9489001f481c3.tar.xz
wireguard-linux-4ed6a3689caba239e6df18c60af9489001f481c3.zip
drm/amdgpu/atomfirmware: silence UBSAN warning
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>
-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 571691837200..09cbc3afd6d8 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[];
};