Skip to content

Commit

Permalink
MFC r343552
Browse files Browse the repository at this point in the history
vtnet: fix typo in vtnet_free_taskqueues

Because of a typo, the code was mistakenly resetting the
vtnrx_vq pointer rather than vtntx_tq.

Reviewed by:    bryanv
Differential Revision:  https://reviews.freebsd.org/D19015
  • Loading branch information
vmaffione authored and vmaffione committed Feb 1, 2019
1 parent 6370c7e commit e76738f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/dev/virtio/network/if_vtnet.c
Expand Up @@ -2742,7 +2742,7 @@ vtnet_free_taskqueues(struct vtnet_softc *sc)
rxq = &sc->vtnet_rxqs[i];
if (rxq->vtnrx_tq != NULL) {
taskqueue_free(rxq->vtnrx_tq);
rxq->vtnrx_vq = NULL;
rxq->vtnrx_tq = NULL;
}

txq = &sc->vtnet_txqs[i];
Expand Down

0 comments on commit e76738f

Please sign in to comment.