Remove the splimp()/splx() calls around the setting of the MTU. They are
no-op's that I inadvertently added. Even if locking is needed in general for the ioctl's, setting a single long will not need it due to the operation being atomic. Reported by: rwatson
This commit is contained in:
parent
7214348f57
commit
a5b1a8553c
@ -611,9 +611,7 @@ tapifioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
|
||||
break;
|
||||
|
||||
case SIOCSIFMTU:
|
||||
s = splimp();
|
||||
ifp->if_mtu = ifr->ifr_mtu;
|
||||
splx(s);
|
||||
break;
|
||||
|
||||
case SIOCGIFSTATUS:
|
||||
|
Loading…
Reference in New Issue
Block a user