diff options
author | Yazen Ghannam <yazen.ghannam@amd.com> | 2024-06-06 19:12:55 +0300 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2024-06-12 12:33:45 +0300 |
commit | 5ac6293047cf5de6daca662347c19347e856c2a5 (patch) | |
tree | ea22cfb7260c22541f5d1ae39a05be580f6144db /tools/perf/scripts/python/export-to-sqlite.py | |
parent | f97a8b9170a0524c5432791cd5852bf797934af4 (diff) | |
download | linux-5ac6293047cf5de6daca662347c19347e856c2a5.tar.xz |
EDAC/amd64: Check return value of amd_smn_read()
Check the return value of amd_smn_read() before saving a value. This
ensures invalid values aren't saved. The struct umc instance is
initialized to 0 during memory allocation. Therefore, a bad read will
keep the value as 0 providing the expected Read-as-Zero behavior.
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20240606-fix-smn-bad-read-v4-2-ffde21931c3f@amd.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions