u-boot-brain/net
Jim Lin 7315cfd9e1 NET: Fix system hanging if NET device is not installed
If we try to boot from NET device, NetInitLoop in net.c will be invoked.
If NET device is not installed, eth_get_dev() function will return
eth_current value, which is NULL.
When NetInitLoop is called, "eth_get_dev->enetaddr" will access
restricted memory area and therefore cause hanging.
This issue is found on Tegra30 Cardhu platform after adding
CONFIG_CMD_NET and CONFIG_CMD_DHCP in config header file.

Signed-off-by: Jim Lin <jilin@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
2013-06-19 08:32:44 -04:00
..
arp.c net/: sparse fixes 2012-11-04 11:00:36 -07:00
arp.h net: Separate ArpRequest() into lower-level func 2012-05-23 17:53:07 -05:00
bootp.c net/: sparse fixes 2012-11-04 11:00:36 -07:00
bootp.h net: cosmetic: Rename OPT_SIZE to OPT_FIELD_SIZE 2012-05-23 17:46:17 -05:00
cdp.c net: Refactor to separate the UDP handler from the ARP handler 2012-05-23 17:52:53 -05:00
cdp.h net: cosmetic: Rename CDPHandler to cdp_receive 2012-05-23 17:46:16 -05:00
dns.c net: Refactor to separate the UDP handler from the ARP handler 2012-05-23 17:52:53 -05:00
dns.h Add DNS support 2009-07-22 22:53:44 -07:00
eth.c net: eth_write_hwaddr: Return error for invalid MACs 2012-09-27 12:21:36 -05:00
link_local.c net: Fix endianness bug in link-local 2012-12-15 12:28:23 -06:00
link_local.h net: Add link-local addressing support 2012-05-23 17:53:08 -05:00
Makefile net: use common rand()/srand() functions 2012-07-07 14:07:32 +02:00
net_rand.h net: use common rand()/srand() functions 2012-07-07 14:07:32 +02:00
net.c NET: Fix system hanging if NET device is not installed 2013-06-19 08:32:44 -04:00
nfs.c net: nfs: make NFS_TIMEOUT configurable 2012-07-12 14:13:24 -05:00
nfs.h net: cosmetic: nfs.* checkpatch compliance 2012-05-15 17:16:27 -05:00
ping.c net: Allow filtering on debug traces in the net subsystem 2012-05-23 17:53:08 -05:00
ping.h net/: sparse fixes 2012-11-04 11:00:36 -07:00
rarp.c net: Allow filtering on debug traces in the net subsystem 2012-05-23 17:53:08 -05:00
rarp.h net: cosmetic: Un-typedef IP_t 2012-05-23 17:46:00 -05:00
sntp.c net: Refactor to separate the UDP handler from the ARP handler 2012-05-23 17:52:53 -05:00
sntp.h net: cosmetic: sntp.* checkpatch compliance 2012-05-15 17:16:45 -05:00
tftp.c net: Add tftp speed indication 2012-12-15 12:28:22 -06:00
tftp.h net/: sparse fixes 2012-11-04 11:00:36 -07:00