tlsf_malloc: dummy_malloc: Share code for calloc()
Calloc() implementation for TLSF does not correctly check for malloc()
failure which can result in a NULL pointer exception when trying to
calloc() extra large buffers.

Since both TLSF and dummy malloc implementations of calloc() are
exactly the same, pick implementation for the latter (which does
aforementioned check) and share it between the two.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 2c76867 commit d83ae9c923b2b271ffd2a86279dad91c7713146d
@Andrey Smirnov Andrey Smirnov authored on 15 Oct 2018
Sascha Hauer committed on 16 Oct 2018
Showing 4 changed files
View
common/Makefile
View
common/calloc.c 0 → 100644
View
common/dummy_malloc.c
View
common/tlsf_malloc.c