projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge git://git.denx.de/u-boot-tegra
[platform/kernel/u-boot.git]
/
net
/
eth_common.c
diff --git
a/net/eth_common.c
b/net/eth_common.c
index
2880901
..
58fa295
100644
(file)
--- a/
net/eth_common.c
+++ b/
net/eth_common.c
@@
-32,7
+32,10
@@
int eth_getenv_enetaddr(const char *name, uchar *enetaddr)
int eth_setenv_enetaddr(const char *name, const uchar *enetaddr)
{
- char buf[20];
+ char buf[ARP_HLEN_ASCII + 1];
+
+ if (eth_getenv_enetaddr(name, (uchar *)buf))
+ return -EEXIST;
sprintf(buf, "%pM", enetaddr);