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>
Este cometimento está contido em:
Galantsev, Dmitrii cometeu 2023-09-25 11:24:55 -05:00
1 ascendente 31cc2eecfb
cometimento 21dcf6d66c
2 ficheiros modificados
+22 -13

Não existem ficheiros que correspondam à sua pesquisa

+6 -1
Ver ficheiro
@@ -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
*/