Skip to content
Snippets Groups Projects
Commit 7315cfd9 authored by Jim Lin's avatar Jim Lin Committed by Tom Rini
Browse files

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: default avatarJim Lin <jilin@nvidia.com>
Tested-by: default avatarStephen Warren <swarren@nvidia.com>
parent 2f998071
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment