summaryrefslogtreecommitdiffstats
path: root/arch/mips/lib
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-12-01 22:24:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-12-03 10:09:29 +0100
commit70f7691d4110c4384e058ae3e64003ca9ad963a6 (patch)
tree883b96df18765d37563a03f3b8a2e3dcfefbf759 /arch/mips/lib
parente88417b5ef9de74944bf3d8fa86f184abbac68ea (diff)
downloadbarebox-70f7691d4110c4384e058ae3e64003ca9ad963a6.tar.gz
barebox-70f7691d4110c4384e058ae3e64003ca9ad963a6.tar.xz
fix malloc space sizes
end is start + size - 1, not start + size. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/lib')
-rw-r--r--arch/mips/lib/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/lib/memory.c b/arch/mips/lib/memory.c
index ad9f6a6a40..8d2d51b72b 100644
--- a/arch/mips/lib/memory.c
+++ b/arch/mips/lib/memory.c
@@ -26,7 +26,7 @@
static int mips_mem_malloc_init(void)
{
mem_malloc_init((void *)MALLOC_BASE,
- (void *)(MALLOC_BASE + MALLOC_SIZE));
+ (void *)(MALLOC_BASE + MALLOC_SIZE - 1));
return 0;
}
core_initcall(mips_mem_malloc_init);