Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eaa3be6a authored by Zhenzhong Duan's avatar Zhenzhong Duan Committed by Linus Torvalds
Browse files

kexec: add further check to crashkernel



When using crashkernel=2M-256M, the kernel doesn't give any warning.  This
is misleading sometimes.

Signed-off-by: default avatarZhenzhong Duan <zhenzhong.duan@oracle.com>
Acked-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d034cfab
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;
}