X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fkexec.c;h=4e2e472f6aeb35e5fb78e9a6ccdcc4c08fae57e3;hb=2b2027124ff1bc420d4a86e37a57feae5e356d2d;hp=a6a675cb9818ad43728ba7246472f62b44fcd23b;hpb=56b59b429b4c26e5e730bc8c3d837de9f7d0a966;p=karo-tx-linux.git diff --git a/kernel/kexec.c b/kernel/kexec.c index a6a675cb9818..4e2e472f6aeb 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c @@ -37,7 +37,6 @@ #include #include #include -#include #include /* Per cpu memory for storing cpu states in case of system crash. */ @@ -1359,6 +1358,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; } @@ -1462,7 +1465,9 @@ static int __init crash_save_vmcoreinfo_init(void) VMCOREINFO_SYMBOL(init_uts_ns); VMCOREINFO_SYMBOL(node_online_map); +#ifdef CONFIG_MMU VMCOREINFO_SYMBOL(swapper_pg_dir); +#endif VMCOREINFO_SYMBOL(_stext); VMCOREINFO_SYMBOL(vmlist);