commit | a4f23975af52faff854c6b6d787cbf2bd593d88d | [log] [tgz] |
---|---|---|
author | Gong Qianyu <Qianyu.Gong@freescale.com> | Mon Aug 31 11:34:43 2015 +0800 |
committer | Joe Hershberger <joe.hershberger@ni.com> | Wed Oct 28 15:00:15 2015 -0500 |
tree | d1e4e38438ddce766ce4eb05736f87d60bd0afd6 | |
parent | d3095fe37d60118c948d64bad4a8e37960c56cf9 [diff] |
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>
diff --git a/net/eth.c b/net/eth.c index 2e24b55..e9b22d8 100644 --- a/net/eth.c +++ b/net/eth.c
@@ -691,6 +691,7 @@ memset(dev->enetaddr, 0, 6); } } + dev = dev->next; } while (dev != eth_devices); return 0;