From: Stephen Hemminger Date: Wed, 1 Aug 2018 23:18:33 +0000 (-0700) Subject: net/netvsc: fix ring freeing X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ec3242685a4d5c79845a9eafda44e328dca924b9;p=dpdk.git net/netvsc: fix ring freeing The internal receive ring should be freed with rte_ring_free not rte_free. Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") Signed-off-by: Stephen Hemminger --- diff --git a/drivers/net/netvsc/hn_rxtx.c b/drivers/net/netvsc/hn_rxtx.c index 6d2f41c4c0..400598a621 100644 --- a/drivers/net/netvsc/hn_rxtx.c +++ b/drivers/net/netvsc/hn_rxtx.c @@ -774,7 +774,7 @@ hn_dev_rx_queue_setup(struct rte_eth_dev *dev, return 0; fail: - rte_free(rxq->rx_ring); + rte_ring_free(rxq->rx_ring); rte_free(rxq->event_buf); rte_free(rxq); return -ENOMEM; @@ -790,7 +790,7 @@ hn_dev_rx_queue_release(void *arg) if (!rxq) return; - rte_free(rxq->rx_ring); + rte_ring_free(rxq->rx_ring); rxq->rx_ring = NULL; rxq->mb_pool = NULL;