Page MenuHomeFreeBSD

D13407.1794830445.diff
No OneTemporary

Authored By
Unknown
Size
957 B
Referenced Files
None
Subscribers
None

D13407.1794830445.diff

Index: head/sys/netinet6/in6.c
===================================================================
--- head/sys/netinet6/in6.c
+++ head/sys/netinet6/in6.c
@@ -686,7 +686,6 @@
* The failure means address duplication was detected.
*/
}
- EVENTHANDLER_INVOKE(ifaddr_event, ifp);
break;
}
@@ -1399,7 +1398,7 @@
if (ifacount <= 1 && ifp->if_ioctl) {
error = (*ifp->if_ioctl)(ifp, SIOCSIFADDR, (caddr_t)ia);
if (error)
- return (error);
+ goto done;
}
/*
@@ -1439,7 +1438,7 @@
ia->ia_flags |= IFA_RTSELF;
error = rtinit(&ia->ia_ifa, RTM_ADD, ia->ia_flags | rtflags);
if (error)
- return (error);
+ goto done;
ia->ia_flags |= IFA_ROUTE;
}
@@ -1452,6 +1451,11 @@
if (error == 0)
ia->ia_flags |= IFA_RTSELF;
}
+done:
+ WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL,
+ "Invoking IPv6 network device address event may sleep");
+
+ EVENTHANDLER_INVOKE(ifaddr_event, ifp);
return (error);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 16, 12:00 PM (19 m, 43 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41771081
Default Alt Text
D13407.1794830445.diff (957 B)

Event Timeline