]> Pileus Git - ~andy/linux/blobdiff - drivers/net/tun.c
tuntap: initialize vlan_features
[~andy/linux] / drivers / net / tun.c
index 29538e6e914dfd391c6a5b092bc97f21a5ae0bfc..316c759bd988e6d602e7ab7dae37022f46be9ffa 100644 (file)
@@ -1656,6 +1656,7 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)
                dev->hw_features = NETIF_F_SG | NETIF_F_FRAGLIST |
                        TUN_USER_FEATURES;
                dev->features = dev->hw_features;
+               dev->vlan_features = dev->features;
 
                INIT_LIST_HEAD(&tun->disabled);
                err = tun_attach(tun, file);