diff options
author | Dan Carpenter <[email protected]> | 2024-03-06 08:30:46 +0300 |
---|---|---|
committer | Borislav Petkov (AMD) <[email protected]> | 2024-03-06 10:22:19 +0100 |
commit | bd17b7c34fadef645becde1245b9394f69f31702 (patch) | |
tree | 39f83088c8c14731d8adc6b7b399d8b5637fc66b /tools/perf/scripts/python/Perf-Trace-Util/lib | |
parent | 7d19eea51757ad72faf4b0493e5bde85ca62012e (diff) |
RAS/AMD/FMPM: Fix off by one when unwinding on error
Decrement the index variable i before the first iteration when freeing
the remaining elements on error. Depending on where this fails it could
free something from one element beyond the end of the fru_records[]
array.
[ bp: Massage commit message. ]
Fixes: 6f15e617cc99 ("RAS: Introduce a FRU memory poison manager")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions