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

2013-05-17 Thread Jim Lin
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

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

2013-05-17 Thread Stephen Warren
On 05/17/2013 03:41 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