Page MenuHomeFreeBSD

D49227.1788994178.diff
No OneTemporary

Size
581 B
Referenced Files
None
Subscribers
None

D49227.1788994178.diff

diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1040,6 +1040,8 @@
struct in6_pktinfo *pktinfo;
struct in_addr ia;
+ NET_EPOCH_ASSERT();
+
if ((flags & PRUS_IPV6) == 0)
return (0);
@@ -1061,11 +1063,7 @@
/* Validate the interface index if specified. */
if (pktinfo->ipi6_ifindex) {
- struct epoch_tracker et;
-
- NET_EPOCH_ENTER(et);
ifp = ifnet_byindex(pktinfo->ipi6_ifindex);
- NET_EPOCH_EXIT(et); /* XXXGL: unsafe ifp */
if (ifp == NULL)
return (ENXIO);
} else

File Metadata

Mime Type
text/plain
Expires
Wed, Sep 9, 10:49 PM (4 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29529816
Default Alt Text
D49227.1788994178.diff (581 B)

Event Timeline