summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2016-06-06 18:00:05 +0100
committerSimon Horman <horms@verge.net.au>2016-06-08 09:24:03 +0900
commita5eacd16516f8929d01c987225047a9bc30dc114 (patch)
treed33d5ba7c1664d527fd5b242a570751848f5d238
parent38c18bb7d1e2db23491619928ca722750d510ce5 (diff)
arm: fix ELF32/ELF64 check
Rather than using ULONG_MAX to decide whether to use the ELF64 or ELF32 core dump format, use UINT32_MAX instead - we include stdint.h, so we might as well use a constant which is meaningful for the limits of the 32-bit ELF format. Signed-off-by: Russell King <rmk@arm.linux.org.uk> Reviewed-by: Pratyush Anand <panand@redhat.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/arm/crashdump-arm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kexec/arch/arm/crashdump-arm.c b/kexec/arch/arm/crashdump-arm.c
index a390187..fcc4d42 100644
--- a/kexec/arch/arm/crashdump-arm.c
+++ b/kexec/arch/arm/crashdump-arm.c
@@ -369,8 +369,7 @@ int load_crashdump_segments(struct kexec_info *info, char *mod_cmdline)
if (last_ranges < 0)
last_ranges = 0;
- if (crash_memory_ranges[last_ranges].end > ULONG_MAX) {
-
+ if (crash_memory_ranges[last_ranges].end > UINT32_MAX) {
/* for support LPAE enabled kernel*/
elf_info.class = ELFCLASS64;