aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 4913089c91dc..81b392ef5114 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3655,8 +3655,8 @@ static int dev_addr_init(struct net_device *dev)
3655 /* rtnl_mutex must be held here */ 3655 /* rtnl_mutex must be held here */
3656 3656
3657 INIT_LIST_HEAD(&dev->dev_addr_list); 3657 INIT_LIST_HEAD(&dev->dev_addr_list);
3658 memset(addr, 0, sizeof(*addr)); 3658 memset(addr, 0, sizeof(addr));
3659 err = __hw_addr_add(&dev->dev_addr_list, NULL, addr, sizeof(*addr), 3659 err = __hw_addr_add(&dev->dev_addr_list, NULL, addr, sizeof(addr),
3660 NETDEV_HW_ADDR_T_LAN); 3660 NETDEV_HW_ADDR_T_LAN);
3661 if (!err) { 3661 if (!err) {
3662 /* 3662 /*