Page MenuHomeFreeBSD

D40557.diff
No OneTemporary

D40557.diff

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

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)

Event Timeline