mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
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:
parent
00602d0926
commit
ceec92fe5d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156495
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue