diff options
author | Russell King <rmk@arm.linux.org.uk> | 2016-06-06 17:59:55 +0100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2016-06-08 09:22:24 +0900 |
commit | 2185c79d3bf443be85809f3d0e0103035ac7140b (patch) | |
tree | 2588db9aaaed44fd848fef9cb56b40c9e5e2fb31 | |
parent | 45251676e5620b32beafd4fd9db7566a89f58f7e (diff) |
arm: fix off-by-one on memory end
The memory range end is inclusive, not exclusive (see x86). We should
not be adding one to the value parsed from the /proc/iomem resources.
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-arm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kexec/arch/arm/kexec-arm.c b/kexec/arch/arm/kexec-arm.c index 4e90e69..e47fc00 100644 --- a/kexec/arch/arm/kexec-arm.c +++ b/kexec/arch/arm/kexec-arm.c @@ -51,7 +51,6 @@ int get_memory_ranges(struct memory_range **range, int *ranges, if (count != 2) continue; str = line + consumed; - end = end + 1; if (memcmp(str, "System RAM\n", 11) == 0) { type = RANGE_RAM; |