9
0
Fork 0
barebox/drivers
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
..
ata Don't try to guess the size of a disk if its size value is already given 2010-10-11 13:08:27 +02:00
clk arm: move clkdev to drivers/clk 2010-09-20 08:56:42 +02:00
i2c Move mfd drivers to drivers/mfd 2010-10-11 13:22:13 +02:00
led LED: Add LED trigger support 2010-12-20 09:57:35 +01:00
mci Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
mfd mfd mc13892: support reading the revision 2010-10-11 13:22:13 +02:00
mtd nand: Fix warnings due to incompatible format strings 2011-01-07 10:06:04 +01:00
net Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
nor Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
serial Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
spi Make DIV_ROUND_UP macro globally available 2010-12-14 15:15:06 +01:00
usb Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
video ARM STM/i.MX: Add video driver for i.MX23/i.MX28 2010-12-21 08:26:09 +01:00
Kconfig basic LED support 2010-12-20 09:28:21 +01:00
Makefile basic LED support 2010-12-20 09:28:21 +01:00