aboutsummaryrefslogtreecommitdiffstats
path: root/net/8021q
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-06-15 11:31:37 -0400
committerDavid S. Miller <davem@davemloft.net>2017-06-15 11:59:32 -0400
commit0ddead90b223faae475f3296a50bf574b7f7c69a (patch)
treee729c7fcdc7e3697f7fae2f3028ed0d11931c425 /net/8021q
parentf7aec129a356ad049edddcb7e77b04a474fcf41f (diff)
parenta090bd4ff8387c409732a8e059fbf264ea0bdd56 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
The conflicts were two cases of overlapping changes in batman-adv and the qed driver. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q')
-rw-r--r--net/8021q/vlan_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index 56d4b6977d03..c1742322f7d2 100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -807,7 +807,6 @@ static void vlan_dev_free(struct net_device *dev)
807 807
808 free_percpu(vlan->vlan_pcpu_stats); 808 free_percpu(vlan->vlan_pcpu_stats);
809 vlan->vlan_pcpu_stats = NULL; 809 vlan->vlan_pcpu_stats = NULL;
810 free_netdev(dev);
811} 810}
812 811
813void vlan_setup(struct net_device *dev) 812void vlan_setup(struct net_device *dev)
@@ -820,7 +819,8 @@ void vlan_setup(struct net_device *dev)
820 netif_keep_dst(dev); 819 netif_keep_dst(dev);
821 820
822 dev->netdev_ops = &vlan_netdev_ops; 821 dev->netdev_ops = &vlan_netdev_ops;
823 dev->destructor = vlan_dev_free; 822 dev->needs_free_netdev = true;
823 dev->priv_destructor = vlan_dev_free;
824 dev->ethtool_ops = &vlan_ethtool_ops; 824 dev->ethtool_ops = &vlan_ethtool_ops;
825 825
826 dev->min_mtu = 0; 826 dev->min_mtu = 0;