Add extra element to array for bounds checking
Decrement padding to keep struct size the same Change-Id: I4bea5d4b4d5c908423c7cc55a7e8c404b4a6b5e8 Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
This commit is contained in:
committed by
Galantsev, Dmitrii
parent
20bc3aeeef
commit
85e37bb6ce
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user