De-spl(9).
This commit is contained in:
parent
623fcd8af9
commit
57408837a2
@ -845,7 +845,7 @@ in_ifinit(struct ifnet *ifp, struct in_ifaddr *ia, struct sockaddr_in *sin,
|
||||
{
|
||||
register u_long i = ntohl(sin->sin_addr.s_addr);
|
||||
struct sockaddr_in oldaddr;
|
||||
int s = splimp(), flags = RTF_UP, error = 0;
|
||||
int flags = RTF_UP, error = 0;
|
||||
|
||||
oldaddr = ia->ia_addr;
|
||||
if (oldaddr.sin_family == AF_INET)
|
||||
@ -865,7 +865,6 @@ in_ifinit(struct ifnet *ifp, struct in_ifaddr *ia, struct sockaddr_in *sin,
|
||||
if (ifp->if_ioctl != NULL) {
|
||||
error = (*ifp->if_ioctl)(ifp, SIOCSIFADDR, (caddr_t)ia);
|
||||
if (error) {
|
||||
splx(s);
|
||||
/* LIST_REMOVE(ia, ia_hash) is done in in_control */
|
||||
ia->ia_addr = oldaddr;
|
||||
IN_IFADDR_WLOCK();
|
||||
@ -884,7 +883,6 @@ in_ifinit(struct ifnet *ifp, struct in_ifaddr *ia, struct sockaddr_in *sin,
|
||||
return (error);
|
||||
}
|
||||
}
|
||||
splx(s);
|
||||
if (scrub) {
|
||||
ia->ia_ifa.ifa_addr = (struct sockaddr *)&oldaddr;
|
||||
in_ifscrub(ifp, ia, LLE_STATIC);
|
||||
|
Loading…
x
Reference in New Issue
Block a user