u-boot/net
Bin Meng ac1d313806 net: eth: Check return value in various places
eth_get_dev() can return NULL which means device_probe() fails for
that ethernet device. Add return value check in various places or
U-Boot will crash due to NULL pointer access.

With this commit, 'dm_test_eth_act' test case passes.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2015-10-29 14:05:52 -05:00
..
arp.c net/arp: account for ARP delay, avoid duplicate packets on timeout 2015-10-28 14:57:37 -05:00
arp.h net/arp: account for ARP delay, avoid duplicate packets on timeout 2015-10-28 14:57:37 -05:00
bootp.c net: parse DHCP options from overloaded file/sname fields 2015-10-29 14:05:45 -05:00
bootp.h net: Convert protocol structures to use explicit sizes 2015-04-18 11:11:35 -06:00
cdp.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
cdp.h net: cosmetic: Clean up CDP variables and functions 2015-04-18 11:11:34 -06:00
checksum.c net: Add a separate file for IP checksumming 2015-01-23 21:44:59 -07:00
dns.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
dns.h net: cosmetic: Clean up DNS variables and functions 2015-04-18 11:11:34 -06:00
eth.c net: eth: Check return value in various places 2015-10-29 14:05:52 -05:00
Kconfig net: TFTP: variables cleanup and addition 2015-10-28 14:42:24 -05:00
link_local.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
link_local.h net: Add link-local addressing support 2012-05-23 17:53:08 -05:00
Makefile net: Add a separate file for IP checksumming 2015-01-23 21:44:59 -07:00
net.c net: Increase the size of the net_boot_file_name buffer 2015-10-29 14:05:47 -05:00
net_rand.h net: use common rand()/srand() functions 2012-07-07 14:07:32 +02:00
nfs.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
nfs.h net: cosmetic: Clean up NFS variables and functions 2015-04-18 11:11:33 -06:00
ping.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
ping.h SPDX License cleanup for LiMon imported files 2014-10-10 09:44:43 -04:00
rarp.c net: tftp: Move tftp.h file from ./net to ./include/net 2015-09-07 13:41:04 +02:00
rarp.h net: cosmetic: Clean up RARP variables and functions 2015-04-18 11:11:33 -06:00
sntp.c dm: net: rtc: Support using driver model for rtc in sntp 2015-05-05 20:58:40 -06:00
sntp.h net: cosmetic: Clean up SNTP variables and functions 2015-04-18 11:11:34 -06:00
tftp.c net: TFTP: variables cleanup and addition 2015-10-28 14:42:24 -05:00