summaryrefslogtreecommitdiff
path: root/kernel/kexec.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2016-08-10 14:11:54 +0200
committerIngo Molnar <mingo@kernel.org>2016-08-10 14:11:54 +0200
commita2071cd765637002523798358d2ca441306d708b (patch)
treebafac1682bfa91457439cad09d2eeea71f2ad3bf /kernel/kexec.c
parent784bdf3bb694b256fcd6120b93e8947a84249a3a (diff)
parenta0cba2179ea4c1820fce2ee046b6ed90ecc56196 (diff)
Merge branch 'linus' into locking/urgent, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/kexec.c')
-rw-r--r--kernel/kexec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/kexec.c b/kernel/kexec.c
index 4384672d3245..980936a90ee6 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -48,7 +48,8 @@ static int kimage_alloc_init(struct kimage **rimage, unsigned long entry,
if (kexec_on_panic) {
/* Verify we have a valid entry point */
- if ((entry < crashk_res.start) || (entry > crashk_res.end))
+ if ((entry < phys_to_boot_phys(crashk_res.start)) ||
+ (entry > phys_to_boot_phys(crashk_res.end)))
return -EADDRNOTAVAIL;
}