Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144473877
D50031.id154300.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
857 B
Referenced Files
None
Subscribers
None
D50031.id154300.diff
View Options
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
@@ -1613,6 +1613,17 @@
&mii->mii_media_status, &mii->mii_media_active);
LIST_FOREACH(miisc, &mii->mii_phys, mii_list) {
+ /*
+ * Note: this is sometimes NULL during PHY
+ * enumeration, although that shouldn't be
+ * happening /after/ tick runs. To work
+ * around this whilst the problem is being
+ * debugged, just do a NULL check here and
+ * continue.
+ */
+ if (mii->mii_media.ifm_cur == NULL) {
+ continue;
+
if (IFM_INST(mii->mii_media.ifm_cur->ifm_media)
!= miisc->mii_inst)
continue;
@@ -1620,6 +1631,7 @@
}
}
E6000SW_UNLOCK(sc);
+ taskqueue_enqueue_timeout(sc->sc_tq, &sc->sc_tt, hz);
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 3:23 PM (8 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28593649
Default Alt Text
D50031.id154300.diff (857 B)
Attached To
Mode
D50031: e6000sw: schedule e6000sw_tick() to occur once a second
Attached
Detach File
Event Timeline
Log In to Comment