diff options
-rw-r--r-- | include/linux/netdevice.h | 1 | ||||
-rw-r--r-- | net/core/dev.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index ba5c4639ea9..fd036521918 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -609,6 +609,7 @@ struct net_device | |||
609 | unsigned char addr_len; /* hardware address length */ | 609 | unsigned char addr_len; /* hardware address length */ |
610 | unsigned short dev_id; /* for shared network cards */ | 610 | unsigned short dev_id; /* for shared network cards */ |
611 | 611 | ||
612 | spinlock_t addr_list_lock; | ||
612 | struct dev_addr_list *uc_list; /* Secondary unicast mac addresses */ | 613 | struct dev_addr_list *uc_list; /* Secondary unicast mac addresses */ |
613 | int uc_count; /* Number of installed ucasts */ | 614 | int uc_count; /* Number of installed ucasts */ |
614 | int uc_promisc; | 615 | int uc_promisc; |
diff --git a/net/core/dev.c b/net/core/dev.c index feaab4898a5..d933d1bfa6f 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -3836,6 +3836,7 @@ int register_netdevice(struct net_device *dev) | |||
3836 | BUG_ON(!dev_net(dev)); | 3836 | BUG_ON(!dev_net(dev)); |
3837 | net = dev_net(dev); | 3837 | net = dev_net(dev); |
3838 | 3838 | ||
3839 | spin_lock_init(&dev->addr_list_lock); | ||
3839 | netdev_init_queue_locks(dev); | 3840 | netdev_init_queue_locks(dev); |
3840 | 3841 | ||
3841 | dev->iflink = -1; | 3842 | dev->iflink = -1; |