Skip to content

Commit 0843ba4

Browse files
sourabhjainsmaddy-kerneldev
authored andcommitted
powerpc/fadump: skip parameter area allocation when fadump is disabled
Fadump allocates memory to pass additional kernel command-line argument to the fadump kernel. However, this allocation is not needed when fadump is disabled. So avoid allocating memory for the additional parameter area in such cases. Fixes: f4892c6 ("powerpc/fadump: allocate memory for additional parameters early") Reviewed-by: Hari Bathini <hbathini@linux.ibm.com> Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com> Fixes: f4892c6 ("powerpc/fadump: allocate memory for additional parameters early") Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20251008032934.262683-1-sourabhjain@linux.ibm.com
1 parent 2743cf7 commit 0843ba4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/powerpc/kernel/fadump.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,9 @@ void __init fadump_setup_param_area(void)
17471747
{
17481748
phys_addr_t range_start, range_end;
17491749

1750+
if (!fw_dump.fadump_enabled)
1751+
return;
1752+
17501753
if (!fw_dump.param_area_supported || fw_dump.dump_active)
17511754
return;
17521755

0 commit comments

Comments
 (0)