From 85e37bb6ce4ac36ee9dbcc8ed2866c7b134d4b6c Mon Sep 17 00:00:00 2001 From: "Galantsev, Dmitrii" Date: Wed, 3 Sep 2025 23:14:56 -0500 Subject: [PATCH] Add extra element to array for bounds checking Decrement padding to keep struct size the same Change-Id: I4bea5d4b4d5c908423c7cc55a7e8c404b4a6b5e8 Signed-off-by: Galantsev, Dmitrii --- include/amd_smi/amdsmi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/amd_smi/amdsmi.h b/include/amd_smi/amdsmi.h index e57b68c77f..84fbd0e355 100644 --- a/include/amd_smi/amdsmi.h +++ b/include/amd_smi/amdsmi.h @@ -2092,8 +2092,8 @@ typedef struct { */ typedef struct { uint32_t count; - amdsmi_processor_handle processor_list[AMDSMI_MAX_DEVICES]; - uint64_t reserved[15]; + amdsmi_processor_handle processor_list[AMDSMI_MAX_DEVICES+1]; + uint64_t reserved[14]; } amdsmi_topology_nearest_t; /**