net/hns3: fix mbuf leakage
authorHuisong Li <lihuisong@huawei.com>
Thu, 4 Mar 2021 07:44:52 +0000 (15:44 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Mar 2021 14:07:14 +0000 (15:07 +0100)
commitfdfde7a4a0f8be8f79c82ee91da9041acd64a798
tree64dec7bf3161198807df144cfe9d5266f49a2bec
parente5081655405784a387127ed99c231565585d9302
net/hns3: fix mbuf leakage

The mbufs of rx queue will be allocated in "hns3_do_start" function.
But these mbufs are not released when "hns3_dev_start" executes
failed.

Fixes: c4ae39b2cfc5 ("net/hns3: fix Rx interrupt after reset")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_ethdev.c
drivers/net/hns3/hns3_ethdev_vf.c