Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154514590
D9290.id24368.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
576 B
Referenced Files
None
Subscribers
None
D9290.id24368.diff
View Options
Index: sys/net/if_bridge.c
===================================================================
--- sys/net/if_bridge.c
+++ sys/net/if_bridge.c
@@ -909,14 +909,18 @@
mask &= bif->bif_savedcaps;
}
+ BRIDGE_XLOCK(sc);
LIST_FOREACH(bif, &sc->sc_iflist, bif_next) {
enabled = bif->bif_ifp->if_capenable;
enabled &= ~BRIDGE_IFCAPS_STRIP;
/* strip off mask bits and enable them again if allowed */
enabled &= ~BRIDGE_IFCAPS_MASK;
enabled |= mask;
+ BRIDGE_UNLOCK(sc);
bridge_set_ifcap(sc, bif, enabled);
+ BRIDGE_LOCK(sc);
}
+ BRIDGE_XDROP(sc);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 7:29 PM (6 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32382809
Default Alt Text
D9290.id24368.diff (576 B)
Attached To
Mode
D9290: bridge: Release the bridge lock when calling bridge_set_ifcap()
Attached
Detach File
Event Timeline
Log In to Comment