9
0
Fork 0
barebox/drivers/usb/gadget
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 Add USB device support 2009-09-25 14:31:26 +02:00
Makefile Add USB device support 2009-09-25 14:31:26 +02:00
composite.c Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
config.c Add USB device support 2009-09-25 14:31:26 +02:00
dfu.c Add USB device support 2009-09-25 14:31:26 +02:00
epautoconf.c epautoconf: fix compile error 2010-10-14 13:07:14 +02:00
f_acm.c Add USB device support 2009-09-25 14:31:26 +02:00
f_serial.c Add USB device support 2009-09-25 14:31:26 +02:00
fsl_udc.c Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
gadget_chips.h Add USB device support 2009-09-25 14:31:26 +02:00
serial.c rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
u_serial.c Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
u_serial.h Add USB device support 2009-09-25 14:31:26 +02:00
usbstring.c Add USB device support 2009-09-25 14:31:26 +02:00