aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/kexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/kexec.c b/kernel/kexec.c
index def9c73ec9a6..a0411b3bd54a 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -264,7 +264,7 @@ static int kimage_crash_alloc(struct kimage **rimage, unsigned long entry,
264 for (i = 0; i < nr_segments; i++) { 264 for (i = 0; i < nr_segments; i++) {
265 unsigned long mstart, mend; 265 unsigned long mstart, mend;
266 mstart = image->segment[i].mem; 266 mstart = image->segment[i].mem;
267 mend = mstart + image->segment[i].memsz; 267 mend = mstart + image->segment[i].memsz - 1;
268 /* Ensure we are within the crash kernel limits */ 268 /* Ensure we are within the crash kernel limits */
269 if ((mstart < crashk_res.start) || (mend > crashk_res.end)) 269 if ((mstart < crashk_res.start) || (mend > crashk_res.end))
270 goto out; 270 goto out;