summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/eth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/eth.c b/net/eth.c
index 9dc4411952..badd183433 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -150,6 +150,7 @@ void of_eth_register_ethaddr(struct device_node *node, const char *ethaddr)
addr = xzalloc(sizeof(*addr));
addr->node = node;
+ addr->ethid = -1;
memcpy(addr->ethaddr, ethaddr, ETH_ALEN);
list_add_tail(&addr->list, &ethaddr_list);
}