summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Hedlund <anders.j.hedlund@gmail.com>2012-12-17 23:11:48 +0100
committerSimon Horman <horms@verge.net.au>2012-12-18 08:58:04 +0900
commitea14742d8c5ee3b2d693bc009fd5a5f5e4a8f2da (patch)
treeb3d2ba44ec259c481cc9bc17511554d711e21307
parent20f722ebafd0b639080e2ca8acb9cfad4df407c4 (diff)
kexec-elf-ppc: Fix crashkernel region overflow check
Signed-off-by: Anders Hedlund <anders.j.hedlund@gmail.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/ppc/kexec-elf-ppc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/ppc/kexec-elf-ppc.c b/kexec/arch/ppc/kexec-elf-ppc.c
index 314eb1e..8e408cc 100644
--- a/kexec/arch/ppc/kexec-elf-ppc.c
+++ b/kexec/arch/ppc/kexec-elf-ppc.c
@@ -382,7 +382,7 @@ int elf_ppc_load(int argc, char **argv, const char *buf, off_t len,
(ramdisk_base > crash_base + crash_size) ) {
printf("WARNING: ramdisk is above crashkernel region!\n");
}
- else if (ramdisk_base + initrd_size > crash_base + crash_size) {
+ else if (ramdisk_base + ramdisk_size > crash_base + crash_size) {
printf("WARNING: ramdisk overflows crashkernel region!\n");
}
}