summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/tsec/if_tsec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/tsec/if_tsec.c b/sys/dev/tsec/if_tsec.c
index e0a9c7e..1d87b30d 100644
--- a/sys/dev/tsec/if_tsec.c
+++ b/sys/dev/tsec/if_tsec.c
@@ -358,6 +358,9 @@ tsec_init_locked(struct tsec_softc *sc)
struct ifnet *ifp = sc->tsec_ifp;
uint32_t timeout, val, i;
+ if (ifp->if_drv_flags & IFF_DRV_RUNNING)
+ return;
+
TSEC_GLOBAL_LOCK_ASSERT(sc);
tsec_stop(sc);
OpenPOWER on IntegriCloud