Skip to content

Commit

Permalink
kexec: add further check to crashkernel
Browse files Browse the repository at this point in the history
When using crashkernel=2M-256M, the kernel doesn't give any warning.  This
is misleading sometimes.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Zhenzhong Duan authored and Linus Torvalds committed Mar 29, 2012
1 parent d034cfa commit eaa3be6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1359,6 +1359,10 @@ static int __init parse_crashkernel_simple(char *cmdline,

if (*cur == '@')
*crash_base = memparse(cur+1, &cur);
else if (*cur != ' ' && *cur != '\0') {
pr_warning("crashkernel: unrecognized char\n");
return -EINVAL;
}

return 0;
}
Expand Down

0 comments on commit eaa3be6

Please sign in to comment.