Don't acquire a lock before calling vlan_unconfig().

This fixes a panic when doing "ifconfig ... -vlandev".

OK'ed by:	glebius
This commit is contained in:
Ruslan Ermilov 2006-03-09 14:42:51 +00:00
parent 00602d0926
commit ceec92fe5d

View File

@ -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);