9
0
Fork 0
barebox/scripts/basic
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 add .gitignore files 2007-07-12 10:21:16 +02:00
Makefile rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
docproc.c Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
fixdep.c udpate fixdep.c to linux kernel v2.6.36-rc1-168-ge36c886 2010-08-27 14:24:06 +02:00