From: jsg Date: Fri, 12 Jul 2024 04:05:29 +0000 (+0000) Subject: drm/amdgpu/atomfirmware: silence UBSAN warning X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=327b7bba08b428bceb0202614929a121db0852cb;p=openbsd drm/amdgpu/atomfirmware: silence UBSAN warning From Alex Deucher 004b7fe6ca8c709e8431b400c3082040b80e59cf in linux-6.6.y/6.6.39 d0417264437a8fa05f894cabba5a26715b32d78e in mainline linux --- diff --git a/sys/dev/pci/drm/amd/include/atomfirmware.h b/sys/dev/pci/drm/amd/include/atomfirmware.h index c618edc3f4f..58486172523 100644 --- a/sys/dev/pci/drm/amd/include/atomfirmware.h +++ b/sys/dev/pci/drm/amd/include/atomfirmware.h @@ -702,7 +702,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[]; };