diff options
author | ru <ru@FreeBSD.org> | 2006-03-09 14:42:51 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-03-09 14:42:51 +0000 |
commit | 4f01c7cf85d284703b8a845c36ce2d7db51db172 (patch) | |
tree | 016a67152f62b81007e59727c27ff4ed8cc7b868 /sys/net/if_vlan.c | |
parent | cbce9d083e2f4d69af485be8601c2bcf4333134c (diff) | |
download | FreeBSD-src-4f01c7cf85d284703b8a845c36ce2d7db51db172.zip FreeBSD-src-4f01c7cf85d284703b8a845c36ce2d7db51db172.tar.gz |
Don't acquire a lock before calling vlan_unconfig().
This fixes a panic when doing "ifconfig ... -vlandev".
OK'ed by: glebius
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r-- | sys/net/if_vlan.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 00ed046..8f0a569 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1315,10 +1315,8 @@ vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) if (error) break; if (vlr.vlr_parent[0] == '\0') { - VLAN_LOCK(); vlan_unconfig(ifp); ifp->if_drv_flags &= ~IFF_DRV_RUNNING; - VLAN_UNLOCK(); break; } p = ifunit(vlr.vlr_parent); |