diff options
author | Sourabh Jain <[email protected]> | 2023-07-04 10:37:15 +0530 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2023-08-18 17:03:15 +1000 |
commit | d1eb75e0dfed80d2d85b664e28a39f65b290ab55 (patch) | |
tree | 472c0a82423b51d2cacea83a26bff09b795fd37c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 7dac7cf1b407605c15d85ae885377ba0560ca4cd (diff) |
powerpc/fadump: reset dump area size if fadump memory reserve fails
In case fadump_reserve_mem() fails to reserve memory, the
reserve_dump_area_size variable will retain the reserve area size. This
will lead to /sys/kernel/fadump/mem_reserved node displaying an incorrect
memory reserved by fadump.
To fix this problem, reserve dump area size variable is set to 0 if fadump
failed to reserve memory.
Fixes: 8255da95e545 ("powerpc/fadump: release all the memory above boot memory size")
Signed-off-by: Sourabh Jain <[email protected]>
Acked-by: Mahesh Salgaonkar <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions