commit a156db2a69e615edacda5d283412a00a8db6cfb1 Author: Nick Hudson Date: Mon Jul 4 16:47:19 2022 +0100 Turn a locking botch into a KASSERT diff --git a/sys/dev/pci/if_wm.c b/sys/dev/pci/if_wm.c index 66eef26fb826..5c90fdaa6cc4 100644 --- a/sys/dev/pci/if_wm.c +++ b/sys/dev/pci/if_wm.c @@ -8927,11 +8927,7 @@ wm_deferred_start_locked(struct wm_txqueue *txq) int qid = wmq->wmq_id; KASSERT(mutex_owned(txq->txq_lock)); - - if (txq->txq_stopping) { - mutex_exit(txq->txq_lock); - return; - } + KASSERT(!txq->txq_stopping); if ((sc->sc_flags & WM_F_NEWQUEUE) != 0) { /* XXX need for ALTQ or one CPU system */