diff options
author | Austin Kim | 2022-04-01 09:30:51 +0100 |
---|---|---|
committer | Russell King (Oracle) | 2022-04-01 12:58:08 +0100 |
commit | 9d17f3372306429661d8d44a5cbc0b1209e2ebe5 (patch) | |
tree | 3abbed783d7b528100663fb4e4c7ff6be79a76ee /arch | |
parent | 8b2360c7157b462c4870d447d1e65d30ef31f9aa (diff) |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/kernel/setup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 284a80c0b6e1..7646d3ade56c 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -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) { |