SWDEV-423796 - Resolve stack smashing issue

Inconsistency between struct fields caused stack smashing

Change-Id: Ib06d67723e062d4306420854ba7ab45fb252ffe3
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: 21dcf6d66c]
Tá an tiomantas seo le fáil i:
Galantsev, Dmitrii tiomanta 2023-09-25 11:24:55 -05:00
1 tuismitheoir 49553cf896
tiomantas 07e65d05d4
2 comhad athraithe
+22 -13

Níor tháinig aon chomhaid le do chuardach

+6 -1
Féach ar an gComhad
@@ -503,7 +503,7 @@ typedef struct {
} amdsmi_proc_info_t;
//! Guaranteed maximum possible number of supported frequencies
#define AMDSMI_MAX_NUM_FREQUENCIES 32
#define AMDSMI_MAX_NUM_FREQUENCIES 33
//! Maximum possible value for fan speed. Should be used as the denominator
//! when determining fan speed percentage.
@@ -944,6 +944,11 @@ typedef struct {
* @brief This structure holds information about clock frequencies.
*/
typedef struct {
/**
* Deep Sleep frequency is only supported by some GPUs
*/
bool has_deep_sleep;
/**
* The number of supported frequencies
*/