Commit 23c54087 authored by David S. Miller's avatar David S. Miller

[VLAN]: Accept zero vlan at unregister.

parent 88c5c1d2
...@@ -207,7 +207,7 @@ static int unregister_vlan_dev(struct net_device *real_dev, ...@@ -207,7 +207,7 @@ static int unregister_vlan_dev(struct net_device *real_dev,
#endif #endif
/* sanity check */ /* sanity check */
if ((vlan_id >= VLAN_VID_MASK) || (vlan_id <= 0)) if ((vlan_id >= VLAN_VID_MASK) || (vlan_id < 0))
return -EINVAL; return -EINVAL;
spin_lock_bh(&vlan_group_lock); spin_lock_bh(&vlan_group_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment