9
0
Fork 0
barebox/net
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 tftp: Add push support 2010-06-28 10:45:04 +02:00
Makefile net: add dns support 2010-06-17 08:28:29 +02:00
dhcp.c implement dhcp using new network stack 2010-06-17 08:28:17 +02:00
dns.c net: add dns support 2010-06-17 08:28:29 +02:00
eth.c LED: Add LED trigger support 2010-12-20 09:57:35 +01:00
net.c Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
netconsole.c netconsole: remove non-needed setbaudrate 2010-09-24 08:46:41 +02:00
nfs.c nfs: resend requests after timeout 2010-06-28 10:45:25 +02:00
nfs.h pass filename to nfs and tftp start functions 2009-10-19 10:18:51 +02:00
ping.c ping: make locally used functions static 2010-10-21 22:21:24 +02:00
rarp.h Initial revision 2002-07-20 20:14:13 +00:00
tftp.c Cosmetic fixes, including format attributes for printf() and friends. 2010-12-21 09:02:40 +01:00
tftp.h net: remove switch/case in NetLoop() 2009-10-13 10:57:40 +02:00