9
0
Fork 0

common: memory: fix off-by-one in tlsf_create

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Marc Kleine-Budde 2012-04-24 11:23:03 +02:00 committed by Sascha Hauer
parent 60e03c64b0
commit 78312fa0c5
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ void mem_malloc_init(void *start, void *end)
malloc_end = (unsigned long)end;
malloc_brk = malloc_start;
#ifdef CONFIG_MALLOC_TLSF
tlsf_mem_pool = tlsf_create(start, (char *)end - (char *)start);
tlsf_mem_pool = tlsf_create(start, end - start + 1);
#endif
}