Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149310288
D20740.id59265.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
612 B
Referenced Files
None
Subscribers
None
D20740.id59265.diff
View Options
Index: sys/netinet/in_mcast.c
===================================================================
--- sys/netinet/in_mcast.c
+++ sys/netinet/in_mcast.c
@@ -1267,7 +1267,9 @@
if (error) {
CTR2(KTR_IGMPV3, "%s: dropping ref on %p", __func__, inm);
+ IF_ADDR_WLOCK(ifp);
inm_release_deferred(inm);
+ IF_ADDR_WUNLOCK(ifp);
} else {
*pinm = inm;
}
@@ -2246,7 +2248,9 @@
if (is_new && imf) {
if (imf->imf_inm != NULL) {
IN_MULTI_LIST_LOCK();
+ IF_ADDR_WLOCK(ifp);
inm_release_deferred(imf->imf_inm);
+ IF_ADDR_WUNLOCK(ifp);
IN_MULTI_LIST_UNLOCK();
}
ip_mfilter_free(imf);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 24, 3:56 PM (9 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30258708
Default Alt Text
D20740.id59265.diff (612 B)
Attached To
Mode
D20740: in_mcast.c: need if_addr_lock around inm_release_deferred
Attached
Detach File
Event Timeline
Log In to Comment