net/eth: fix a bug in on_ethaddr()
authorGong Qianyu <Qianyu.Gong@freescale.com>
Mon, 31 Aug 2015 03:34:43 +0000 (11:34 +0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 28 Oct 2015 20:00:15 +0000 (15:00 -0500)
commit7aba0f2c2ce80406661ea2dc79ea1892cc93a26f
treed1e4e38438ddce766ce4eb05736f87d60bd0afd6
parent0d2837cc8f2575d0ebad7abb80860c6bd8fa3dae
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>
net/eth.c