Index: sys/dev/xen/netfront/netfront.c =================================================================== --- sys/dev/xen/netfront/netfront.c +++ sys/dev/xen/netfront/netfront.c @@ -681,7 +681,7 @@ static void destroy_rxq(struct netfront_rxq *rxq) { - + mtx_destroy(&rxq->lock); callout_drain(&rxq->rx_refill); free(rxq->ring.sring, M_DEVBUF); } @@ -778,7 +778,7 @@ static void destroy_txq(struct netfront_txq *txq) { - + mtx_destroy(&txq->lock); free(txq->ring.sring, M_DEVBUF); buf_ring_free(txq->br, M_DEVBUF); taskqueue_drain_all(txq->tq); @@ -2280,6 +2280,7 @@ if_free(np->xn_ifp); np->xn_ifp = NULL; ifmedia_removeall(&np->sc_media); + mtx_destroy(&np->sc_lock); } static void