net/hns3: fix memory leak on secondary process exit
authorLijun Ou <oulijun@huawei.com>
Fri, 22 Jan 2021 10:18:46 +0000 (18:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:11 +0000 (18:16 +0100)
commit4101114586e42e3dfb0dee2e5b054dee3074e63f
tree901c8f2a6c91c290d4e5a577ef7986f6ef0a9708
parentd66ed07ed9026040f9783650ed884919a6285e7d
net/hns3: fix memory leak on secondary process exit

The secondary process is applied a memory for the process_private
during initialization. Therefore, the memory needs to be released
when exiting.

Fixes: c203571b3602 ("net/hns3: register and add log interface")
Cc: stable@dpdk.org
Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_ethdev.c
drivers/net/hns3/hns3_ethdev_vf.c