diff options
author | Zhen Lei <[email protected]> | 2022-05-06 19:43:57 +0800 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2022-05-07 19:54:33 +0100 |
commit | 2e5920bb073a4e3e69cf8e581836cafc8ba1b464 (patch) | |
tree | 703c1312ca48a5031c92b7b8765d297f9f7fe531 /lib/mpi/mpi-sub-ui.c | |
parent | b2d229d4ddb17db541098b83524d901257e93845 (diff) |
kdump: return -ENOENT if required cmdline option does not exist
According to the current crashkernel=Y,low support in other ARCHes, it's
an optional command-line option. When it doesn't exist, kernel will try
to allocate minimum required memory below 4G automatically.
However, __parse_crashkernel() returns '-EINVAL' for all error cases. It
can't distinguish the nonexistent option from invalid option.
Change __parse_crashkernel() to return '-ENOENT' for the nonexistent option
case. With this change, crashkernel,low memory will take the default
value if crashkernel=,low is not specified; while crashkernel reservation
will fail and bail out if an invalid option is specified.
Signed-off-by: Zhen Lei <[email protected]>
Acked-by: Baoquan He <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions