Skip to content

Commit

Permalink
ARM: 9190/1: kdump: add invalid input check for 'crashkernel=0'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
austindhkim authored and Russell King (Oracle) committed Apr 1, 2022
1 parent 8b2360c commit 9d17f33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,8 @@ static void __init reserve_crashkernel(void)
total_mem = get_total_mem();
ret = parse_crashkernel(boot_command_line, total_mem,
&crash_size, &crash_base);
if (ret)
/* invalid value specified or crashkernel=0 */
if (ret || !crash_size)
return;

if (crash_base <= 0) {
Expand Down

0 comments on commit 9d17f33

Please sign in to comment.