From: Tom Rini Date: Wed, 19 Jun 2013 08:36:53 -0400 Subject: [U-Boot] [U-Boot, 1/1] NET: Fix system hanging if NET device is not installed In-Reply-To: <1368783663-27672-1-git-send-email-jilin@nvidia.com> References: <1368783663-27672-1-git-send-email-jilin@nvidia.com> Message-ID: <20130619123653.GA19522@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Tested-by: Stephen Warren 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: