diff options
author | Russell King <rmk@arm.linux.org.uk> | 2016-06-06 18:00:10 +0100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2016-06-08 09:24:09 +0900 |
commit | 8431da92d96501818dd4d167ad88566a7f3b1fb5 (patch) | |
tree | 416bf6561feae5f760ec3374762503ff3c97daab | |
parent | a5eacd16516f8929d01c987225047a9bc30dc114 (diff) |
arm: return proper error for missing crash kernel
Return the proper error code (ENOCRASHKERNEL) for a missing crash
kernel region in /proc/iomem, so the error handling in kexec.c can
print the appropriate message.
Reviewed-by: Pratyush Anand <panand@redhat.com>
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/arm/kexec-zImage-arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/arm/kexec-zImage-arm.c b/kexec/arch/arm/kexec-zImage-arm.c index 6b548c3..0647e69 100644 --- a/kexec/arch/arm/kexec-zImage-arm.c +++ b/kexec/arch/arm/kexec-zImage-arm.c @@ -504,7 +504,7 @@ int zImage_arm_load(int argc, char **argv, const char *buf, off_t len, * No crash kernel memory reserved. We cannot do more * but just bail out. */ - return -1; + return ENOCRASHKERNEL; } base = start; } else { |