Message ID | 20220506114402.365-2-thunder.leizhen@huawei.com |
---|---|
State | Accepted |
Commit | 2e5920bb073a4e3e69cf8e581836cafc8ba1b464 |
Headers | show |
Series | support reserving crashkernel above 4G on arm64 kdump | expand |
diff --git a/kernel/crash_core.c b/kernel/crash_core.c index 256cf6db573cd09..4d57c03714f4e13 100644 --- a/kernel/crash_core.c +++ b/kernel/crash_core.c @@ -243,9 +243,8 @@ static int __init __parse_crashkernel(char *cmdline, *crash_base = 0; ck_cmdline = get_last_crashkernel(cmdline, name, suffix); - if (!ck_cmdline) - return -EINVAL; + return -ENOENT; ck_cmdline += strlen(name);