Commit 17ea4383 authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu/atomfirmware: Silence UBSAN warning

Per the comments, these are variable sized arrays.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3613Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 81f7804b)
Cc: stable@vger.kernel.org
parent 8409fb50
...@@ -1038,7 +1038,7 @@ struct display_object_info_table_v1_4 ...@@ -1038,7 +1038,7 @@ struct display_object_info_table_v1_4
uint16_t supporteddevices; uint16_t supporteddevices;
uint8_t number_of_path; uint8_t number_of_path;
uint8_t reserved; 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 { struct display_object_info_table_v1_5 {
...@@ -1048,7 +1048,7 @@ struct display_object_info_table_v1_5 { ...@@ -1048,7 +1048,7 @@ struct display_object_info_table_v1_5 {
uint8_t reserved; uint8_t reserved;
// the real number of this included in the structure is calculated by using the // 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 // (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[];
}; };
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment