Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102649197
D40557.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
439 B
Referenced Files
None
Subscribers
None
D40557.diff
View Options
diff --git a/sys/net/iflib.c b/sys/net/iflib.c
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -5386,7 +5386,13 @@
goto fail_queues;
}
+ /*
+ * It prevents a double-locking panic with iflib_media_status when
+ * the driver loads.
+ */
+ CTX_UNLOCK(ctx);
ether_ifattach(ctx->ifc_ifp, ctx->ifc_mac.octet);
+ CTX_LOCK(ctx);
if ((err = IFDI_ATTACH_POST(ctx)) != 0) {
device_printf(dev, "IFDI_ATTACH_POST failed %d\n", err);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 8:07 AM (21 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14655695
Default Alt Text
D40557.diff (439 B)
Attached To
Mode
D40557: iflib: add unlock to call ether_ifattach
Attached
Detach File
Event Timeline
Log In to Comment