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:
parent
60e03c64b0
commit
78312fa0c5
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue