9
0
Fork 0
barebox/scripts/mod
Krzysztof Halasa c5baa0edc4 Fix error handling with malloc, memalign etc. Introduce xmemalign().
The idea is to panic() when there is no memory available for normal
operation. Exception: code which can consume arbitrary amount of RAM
(example: files allocated in ramfs) must report error instead of panic().

This patch also fixes code which didn't check for NULL from malloc() etc.

Usage: malloc(), memalign() return NULL when out of RAM.
xmalloc(), xmemalign() always return non-NULL or panic().

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-07 10:21:22 +01:00
..
.gitignore update some .gitignore files 2007-10-24 13:22:09 +02:00
Makefile add modpost 2007-10-04 12:54:56 +02:00
empty.c add modpost 2007-10-04 12:54:56 +02:00
file2alias.c add modpost 2007-10-04 12:54:56 +02:00
mk_elfconfig.c add modpost 2007-10-04 12:54:56 +02:00
modpost.c Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
modpost.h add modpost 2007-10-04 12:54:56 +02:00
sumversion.c add modpost 2007-10-04 12:54:56 +02:00