From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Wed, 05 Jun 2013 09:00:09 -0600 Subject: [U-Boot] [PATCH 1/1 RESEND] NET: Fix system hanging if NET device is not installed In-Reply-To: <1370416043-4315-1-git-send-email-jilin@nvidia.com> References: <1370416043-4315-1-git-send-email-jilin@nvidia.com> Message-ID: <51AF5279.5090700@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/05/2013 01:07 AM, 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. Oh, you didn't send this patch to anyone, just the mailing list. I added the net maintainer to Cc so he'll see this patch. BTW, this is a critical bugfix, to avoid hangs without any USB Ethernet device attached.