diff options
author | Gong Qianyu <Qianyu.Gong@freescale.com> | 2015-08-31 11:34:43 +0800 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-10-28 15:00:15 -0500 |
commit | 7aba0f2c2ce80406661ea2dc79ea1892cc93a26f (patch) | |
tree | d1e4e38438ddce766ce4eb05736f87d60bd0afd6 | |
parent | 0d2837cc8f2575d0ebad7abb80860c6bd8fa3dae (diff) | |
download | u-boot-7aba0f2c2ce80406661ea2dc79ea1892cc93a26f.tar.gz |
net/eth: fix a bug in on_ethaddr()
The loop should check all ethenet devices, not only the first device,
to set each specified ethaddr, or it'll cause failure when we use other
devices.
Signed-off-by: Gong Qianyu <Qianyu.Gong@freescale.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r-- | net/eth.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -691,6 +691,7 @@ static int on_ethaddr(const char *name, const char *value, enum env_op op, memset(dev->enetaddr, 0, 6); } } + dev = dev->next; } while (dev != eth_devices); return 0; |