mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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>
This commit is contained in:
parent
0d2837cc8f
commit
7aba0f2c2c
1 changed files with 1 additions and 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;
|
||||
|
|
Loading…
Add table
Reference in a new issue