diff options
author | dim <dim@FreeBSD.org> | 2015-01-26 21:41:54 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-01-26 21:41:54 +0000 |
commit | a53e4d44d0463dae21283fdb3ca61a1e38df799f (patch) | |
tree | 6f5baa0292e962bb69dc0020ada66d60ea578642 /sys/dev/cxgbe/t4_main.c | |
parent | c9e57e45aceb65bdac0c758538375582075c8a97 (diff) | |
parent | 191df99881cad772b533cb8ad72897ab307efdb9 (diff) | |
download | FreeBSD-src-a53e4d44d0463dae21283fdb3ca61a1e38df799f.zip FreeBSD-src-a53e4d44d0463dae21283fdb3ca61a1e38df799f.tar.gz |
Merge ^/head r277719 through 277776.
Diffstat (limited to 'sys/dev/cxgbe/t4_main.c')
-rw-r--r-- | sys/dev/cxgbe/t4_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index dbd6334..7f59e84 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -3292,6 +3292,12 @@ cxgbe_uninit_synchronized(struct port_info *pi) ASSERT_SYNCHRONIZED_OP(sc); + if (!(pi->flags & PORT_INIT_DONE)) { + KASSERT(!(ifp->if_drv_flags & IFF_DRV_RUNNING), + ("uninited port is running")); + return (0); + } + /* * Disable the VI so that all its data in either direction is discarded * by the MPS. Leave everything else (the queues, interrupts, and 1Hz |