9
0
Fork 0
barebox/arch
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
..
arm Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
blackfin clocksource: switch mask to CLOCKSOURCE_MASK 2010-11-29 21:55:25 +01:00
ppc clocksource: switch mask to CLOCKSOURCE_MASK 2010-11-29 21:55:25 +01:00
sandbox clocksource: switch mask to CLOCKSOURCE_MASK 2010-11-29 21:55:25 +01:00
x86 clocksource: switch mask to CLOCKSOURCE_MASK 2010-11-29 21:55:25 +01:00
architecture.dox Remove m68k support 2010-11-17 09:18:25 +01:00