Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156584698
D56375.id175416.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
409 B
Referenced Files
None
Subscribers
None
D56375.id175416.diff
View Options
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -989,8 +989,11 @@
sdl = (struct sockaddr_dl *)(ifp->if_addr->ifa_addr);
uuid_ether_del(LLADDR(sdl));
+ /* XXXZL: Workaround bpfdetach() race */
+ sx_xlock(&ifnet_detach_sxlock);
bpfdetach(ifp);
if_detach(ifp);
+ sx_xunlock(&ifnet_detach_sxlock);
}
SYSCTL_DECL(_net_link);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 15, 9:09 PM (9 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31467607
Default Alt Text
D56375.id175416.diff (409 B)
Attached To
Mode
D56375: if_ethersubr: Workaround bpfdetach() race
Attached
Detach File
Event Timeline
Log In to Comment