summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-11-04 22:03:41 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2016-11-04 22:03:41 +0000
commitbb9258e781a391903443da9d97fcf26736afb70f (patch)
tree5713024780f59a4257a0327e93592eb352c52712
parent261d64c82b1ebe26122858528baf70896cf2f642 (diff)
Notes
-rw-r--r--sys/dev/cxgbe/t4_l2t.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/cxgbe/t4_l2t.c b/sys/dev/cxgbe/t4_l2t.c
index f31673927622..a6f85ab6e956 100644
--- a/sys/dev/cxgbe/t4_l2t.c
+++ b/sys/dev/cxgbe/t4_l2t.c
@@ -306,7 +306,6 @@ sysctl_l2t(SYSCTL_HANDLER_ARGS)
}
/*
- * XXX: e->ifp may not be around.
* XXX: IPv6 addresses may not align properly in the output.
*/
sbuf_printf(sb, "\n%4u %-15s %02x:%02x:%02x:%02x:%02x:%02x %4d"
@@ -315,7 +314,7 @@ sysctl_l2t(SYSCTL_HANDLER_ARGS)
e->dmac[3], e->dmac[4], e->dmac[5],
e->vlan & 0xfff, vlan_prio(e), e->lport,
l2e_state(e), atomic_load_acq_int(&e->refcnt),
- e->ifp->if_xname);
+ e->ifp ? e->ifp->if_xname : "-");
skip:
mtx_unlock(&e->lock);
}