net/bonding: fix leak on remove
authorChengwen Feng <fengchengwen@huawei.com>
Thu, 22 Apr 2021 02:05:02 +0000 (10:05 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 26 Apr 2021 13:00:41 +0000 (15:00 +0200)
commit144dc4739975602eec9f8c5f33d1a1bb7df7fcdb
treeec16edeaaf52e7e5afbd2dcdd61aa1c2e54d129d
parent40cc23b0f0ef0f0fa2ce9a77d4558eadefe1fea5
net/bonding: fix leak on remove

If the bond device was created by vdev mode, the kvlist was not free
when the bond device removed.

Fixes: 8d30fe7fa737 ("bonding: support port hotplug")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/bonding/rte_eth_bond_pmd.c