diff options
Diffstat (limited to 'net/switchdev/switchdev.c')
-rw-r--r-- | net/switchdev/switchdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c index 7a9ab90363be..b8aaf820ef65 100644 --- a/net/switchdev/switchdev.c +++ b/net/switchdev/switchdev.c | |||
@@ -727,6 +727,9 @@ static int switchdev_port_br_afspec(struct net_device *dev, | |||
727 | if (vlan.vid_begin) | 727 | if (vlan.vid_begin) |
728 | return -EINVAL; | 728 | return -EINVAL; |
729 | vlan.vid_begin = vinfo->vid; | 729 | vlan.vid_begin = vinfo->vid; |
730 | /* don't allow range of pvids */ | ||
731 | if (vlan.flags & BRIDGE_VLAN_INFO_PVID) | ||
732 | return -EINVAL; | ||
730 | } else if (vinfo->flags & BRIDGE_VLAN_INFO_RANGE_END) { | 733 | } else if (vinfo->flags & BRIDGE_VLAN_INFO_RANGE_END) { |
731 | if (!vlan.vid_begin) | 734 | if (!vlan.vid_begin) |
732 | return -EINVAL; | 735 | return -EINVAL; |