diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-01 22:24:04 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-03 10:09:29 +0100 |
commit | 70f7691d4110c4384e058ae3e64003ca9ad963a6 (patch) | |
tree | 883b96df18765d37563a03f3b8a2e3dcfefbf759 /arch/arm/lib | |
parent | e88417b5ef9de74944bf3d8fa86f184abbac68ea (diff) | |
download | barebox-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/arm/lib')
-rw-r--r-- | arch/arm/lib/arm.c | 2 |
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; } |