9
0
Fork 0
barebox/drivers/serial
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
..
Kconfig STM378x: Adapt the serial driver to support i.MX23 and i.MX28 2010-12-14 15:15:06 +01:00
Makefile Add the driver for the i.MX23 debug UART 2010-10-11 15:42:19 +02:00
amba-pl011.c Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
arm_dcc.c driver: use id as -1 for auto assigned id 2010-09-20 08:58:52 +02:00
atmel.c Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
linux_console.c [SANDBOX] Move include/asm-sandbox/arch-* to arch/sandbox/*/include/mach 2009-10-22 14:21:29 +02:00
serial_at91rm9200.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2009-10-22 14:21:25 +02:00
serial_blackfin.c Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
serial_imx.c Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
serial_mpc5xxx.c [PPC] Move include/asm-ppc/arch-* to arch/ppc/*/include/mach 2009-10-22 14:21:30 +02:00
serial_netx.c Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
serial_ns16550.c Cleanup some more collateral damage from renaming 2009-12-15 21:23:42 +01:00
serial_ns16550.h 009-add-NS16550 2008-06-05 19:45:21 +02:00
serial_pl010.c Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
serial_pl010.h Add PrimeCell PL010 serial driver 2010-01-14 10:04:13 +01:00
serial_s3c24x0.c Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
stm-serial.c STM378x: Do not configure any pin usage in the driver 2010-12-14 15:15:06 +01:00