summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/arm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/lib/arm.c')
-rw-r--r--arch/arm/lib/arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/arm.c b/arch/arm/lib/arm.c
index c85aae14a0..80b62e988d 100644
--- a/arch/arm/lib/arm.c
+++ b/arch/arm/lib/arm.c
@@ -7,7 +7,7 @@
static int arm_mem_malloc_init(void)
{
mem_malloc_init((void *)MALLOC_BASE,
- (void *)(MALLOC_BASE + MALLOC_SIZE));
+ (void *)(MALLOC_BASE + MALLOC_SIZE - 1));
return 0;
}