[U-Boot] [U-Boot, 1/1] NET: Fix system hanging if NET device is not installed

Tom Rini trini at ti.com
Wed Jun 19 14:36:53 CEST 2013


On Fri, May 17, 2013 at 05:41:03PM +0800, Jim Lin wrote:

> 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 at nvidia.com>
> Tested-by: Stephen Warren <swarren at nvidia.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130619/2dd57dd2/attachment.pgp>


More information about the U-Boot mailing list