diff --git a/kernel/kexec.c b/kernel/kexec.c index 769e347c51967ee889e82ab1073da1e847aa30b2..3288c9b29bae85193726b18a665bace620b26177 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c @@ -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; }