hyperv/hn: Free the txdesc buf_ring when the TX ring is destroyed
Reviewed by: adrian Approved by: adrian (mentor) MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5318
This commit is contained in:
parent
ea2f3d1776
commit
563d00ab5c
@ -2276,6 +2276,11 @@ hn_destroy_tx_ring(struct hn_tx_ring *txr)
|
||||
bus_dma_tag_destroy(txr->hn_tx_data_dtag);
|
||||
if (txr->hn_tx_rndis_dtag != NULL)
|
||||
bus_dma_tag_destroy(txr->hn_tx_rndis_dtag);
|
||||
|
||||
#ifdef HN_USE_TXDESC_BUFRING
|
||||
buf_ring_free(txr->hn_txdesc_br, M_NETVSC);
|
||||
#endif
|
||||
|
||||
free(txr->hn_txdesc, M_NETVSC);
|
||||
txr->hn_txdesc = NULL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user