diff options
Diffstat (limited to 'net/8021q/vlan.c')
-rw-r--r-- | net/8021q/vlan.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index b529110c9355..8141e2dc510b 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c | |||
@@ -570,8 +570,7 @@ static int vlan_ioctl_handler(struct net *net, void __user *arg) | |||
570 | goto out; | 570 | goto out; |
571 | 571 | ||
572 | err = -EINVAL; | 572 | err = -EINVAL; |
573 | if (args.cmd != ADD_VLAN_CMD && | 573 | if (args.cmd != ADD_VLAN_CMD && !is_vlan_dev(dev)) |
574 | !(dev->priv_flags & IFF_802_1Q_VLAN)) | ||
575 | goto out; | 574 | goto out; |
576 | } | 575 | } |
577 | 576 | ||