summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-09-19 04:21:54 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-09-19 04:21:54 +0000
commit95433d8c44bc3e57f6713fd9fcbcd8e566bd7c0a (patch)
tree1e6f067ac70b3cae210623ac9c78109d3c60863a
parentb8198a083f4da4f7e36bf7641933e524f5e13bfe (diff)
drm/amdgpu/atomfirmware: Silence UBSAN warning
From Alex Deucher 54268468399e5d1b23e76e43d06ff49ccad5fd4d in linux-6.6.y/6.6.52 17ea4383649fdeaff3181ddcf1ff03350d42e591 in mainline linux
-rw-r--r--sys/dev/pci/drm/amd/include/atomfirmware.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/amd/include/atomfirmware.h b/sys/dev/pci/drm/amd/include/atomfirmware.h
index 6c8b4afa7cc..ccc79bdd4f5 100644
--- a/sys/dev/pci/drm/amd/include/atomfirmware.h
+++ b/sys/dev/pci/drm/amd/include/atomfirmware.h
@@ -1006,7 +1006,7 @@ struct display_object_info_table_v1_4
uint16_t supporteddevices;
uint8_t number_of_path;
uint8_t reserved;
- struct atom_display_object_path_v2 display_path[8]; //the real number of this included in the structure is calculated by using the (whole structure size - the header size- number_of_path)/size of atom_display_object_path
+ struct atom_display_object_path_v2 display_path[]; //the real number of this included in the structure is calculated by using the (whole structure size - the header size- number_of_path)/size of atom_display_object_path
};
struct display_object_info_table_v1_5 {
@@ -1016,7 +1016,7 @@ struct display_object_info_table_v1_5 {
uint8_t reserved;
// the real number of this included in the structure is calculated by using the
// (whole structure size - the header size- number_of_path)/size of atom_display_object_path
- struct atom_display_object_path_v3 display_path[8];
+ struct atom_display_object_path_v3 display_path[];
};
/*