]> git.hungrycats.org Git - linux/commitdiff
[VLAN]: Accept zero vlan at unregister.
authorDavid S. Miller <davem@nuts.ninka.net>
Sun, 6 Oct 2002 15:24:34 +0000 (08:24 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Sun, 6 Oct 2002 15:24:34 +0000 (08:24 -0700)
net/8021q/vlan.c

index 6f21903b0932d9245a2b782faa210e925e2fc494..6ac4285f3fe59aa9d21a02abd2f8978221fff5b0 100644 (file)
@@ -207,7 +207,7 @@ static int unregister_vlan_dev(struct net_device *real_dev,
 #endif
 
        /* sanity check */
-       if ((vlan_id >= VLAN_VID_MASK) || (vlan_id <= 0))
+       if ((vlan_id >= VLAN_VID_MASK) || (vlan_id < 0))
                return -EINVAL;
 
        spin_lock_bh(&vlan_group_lock);