net/bonding: fix kvlist memory leakage
Subsystems (2)
PATCH 1/1 net/bonding: fix kvlist memory leakage
From: Chengwen Feng <[email protected]>
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")
Signed-off-by Chengwen Feng <[email protected]>
Signed-off-by Min Hu (Connor) <[email protected]>
--- drivers/net/bonding/rte_eth_bond_pmd.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/bonding/rte_eth_bond_pmd.c +2 -0
@@ -3467,6 +3467,8 @@ bond_remove(struct rte_vdev_device *dev) ret =bond_ethdev_stop (eth_dev);bond_ethdev_close (eth_dev); } +if (internals->kvlist !=NULL ) +rte_kvargs_free (internals->kvlist);rte_eth_dev_release_port (eth_dev);return ret;
Signature · 1 line
2.7.4
Quoted 10 lines · Min Hu (Connor)
From: Chengwen Feng <[email protected]>
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")Signed-off-by Chengwen Feng <[email protected]>Signed-off-by Min Hu (Connor) <[email protected]>
Reviewed-by Ferruh Yigit <[email protected]>
Applied to dpdk-next-net/main, thanks.