From: Chengwen Feng Date: Wed, 13 Oct 2021 08:09:08 +0000 (+0800) Subject: net/hns3: fix interrupt vector freeing X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f93819cf5abc047905c464fe4abf84fa823239dd;p=dpdk.git net/hns3: fix interrupt vector freeing The intr_handle->intr_vec is allocated by rte_zmalloc(), but freed by free(), this patch fixes it. Fixes: 02a7b55657b2 ("net/hns3: support Rx interrupt") Cc: stable@dpdk.org Signed-off-by: Chengwen Feng Reviewed-by: Ferruh Yigit --- diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c index f3cc190d1c..e896de58a4 100644 --- a/drivers/net/hns3/hns3_ethdev_vf.c +++ b/drivers/net/hns3/hns3_ethdev_vf.c @@ -2358,7 +2358,7 @@ hns3vf_map_rx_interrupt(struct rte_eth_dev *dev) return 0; vf_bind_vector_error: - free(intr_handle->intr_vec); + rte_free(intr_handle->intr_vec); intr_handle->intr_vec = NULL; vf_alloc_intr_vec_error: rte_intr_efd_disable(intr_handle);