Skip to content

Commit 4831be7

Browse files
SupremacistLeviwilldeacon
authored andcommitted
arm64/kexec: Fix missing extra range for crashkres_low.
Like crashk_res, Calling crash_exclude_mem_range function with crashk_low_res area would need extra crash_mem range too. Add one more extra cmem slot in case of crashk_low_res is used. Signed-off-by: Levi Yun <[email protected]> Fixes: 944a45a ("arm64: kdump: Reimplement crashkernel=X") Cc: <[email protected]> # 5.19.x Acked-by: Baoquan He <[email protected]> Reviewed-by: Catalin Marinas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 714f3cb commit 4831be7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/machine_kexec_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static int prepare_elf_headers(void **addr, unsigned long *sz)
4747
u64 i;
4848
phys_addr_t start, end;
4949

50-
nr_ranges = 1; /* for exclusion of crashkernel region */
50+
nr_ranges = 2; /* for exclusion of crashkernel region */
5151
for_each_mem_range(i, &start, &end)
5252
nr_ranges++;
5353

0 commit comments

Comments
 (0)