Page MenuHomeFreeBSD

D36117.diff
No OneTemporary

D36117.diff

diff --git a/sys/dev/etherswitch/e6000sw/e6000sw.c b/sys/dev/etherswitch/e6000sw/e6000sw.c
--- a/sys/dev/etherswitch/e6000sw/e6000sw.c
+++ b/sys/dev/etherswitch/e6000sw/e6000sw.c
@@ -529,20 +529,11 @@
if (!e6000sw_is_phyport(sc, port))
continue;
- /*
- * It's necessary to unlock mutex, because e6000sw_attach_miibus
- * calls functions, which try to lock mutex.That leads
- * to recursive lock on non recursive mutex.
- */
- E6000SW_UNLOCK(sc);
-
err = e6000sw_attach_miibus(sc, port);
if (err != 0) {
device_printf(sc->dev, "failed to attach miibus\n");
goto out_fail;
}
-
- E6000SW_LOCK(sc);
}
etherswitch_info.es_nports = sc->num_ports;

File Metadata

Mime Type
text/plain
Expires
Sun, Sep 29, 5:27 PM (22 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13143287
Default Alt Text
D36117.diff (685 B)

Event Timeline