Skip to content

Commit 9d17f33

Browse files
austindhkimRussell King (Oracle)
authored andcommitted
ARM: 9190/1: kdump: add invalid input check for 'crashkernel=0'
Add invalid input check expression when 'crashkernel=0' is specified running kdump. Signed-off-by: Austin Kim <austindh.kim@gmail.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent 8b2360c commit 9d17f33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm/kernel/setup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,8 @@ static void __init reserve_crashkernel(void)
10041004
total_mem = get_total_mem();
10051005
ret = parse_crashkernel(boot_command_line, total_mem,
10061006
&crash_size, &crash_base);
1007-
if (ret)
1007+
/* invalid value specified or crashkernel=0 */
1008+
if (ret || !crash_size)
10081009
return;
10091010

10101011
if (crash_base <= 0) {

0 commit comments

Comments
 (0)