mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189907
|
@ -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 a new issue