projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d67091
)
kexec: get rid of duplicate check for hole_end
author
Zhang Yanfei
<
[email protected]
>
Thu, 28 Feb 2013 01:03:26 +0000
(17:03 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 28 Feb 2013 03:10:12 +0000
(19:10 -0800)
hole_end has been checked to make sure it is <= crash_res.end in the while
condition check, so the if condition check is duplicate.
Signed-off-by: Zhang Yanfei <
[email protected]
>
Reviewed-by: "Eric W. Biederman" <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/kexec.c
patch
|
blob
|
history
diff --git
a/kernel/kexec.c
b/kernel/kexec.c
index 7d44a9f9414581d6e81f4918ad8f3b476a61ebec..ea097ad7cc373832b805a5780a3e1114458f5131 100644
(file)
--- a/
kernel/kexec.c
+++ b/
kernel/kexec.c
@@
-503,8
+503,6
@@
static struct page *kimage_alloc_crash_control_pages(struct kimage *image,
if (hole_end > KEXEC_CRASH_CONTROL_MEMORY_LIMIT)
break;
- if (hole_end > crashk_res.end)
- break;
/* See if I overlap any of the segments */
for (i = 0; i < image->nr_segments; i++) {
unsigned long mstart, mend;