net/thunderx: fix memory leak on rbdr desc ring failure
authorYunjian Wang <wangyunjian@huawei.com>
Tue, 20 Oct 2020 15:02:37 +0000 (23:02 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:06 +0000 (23:35 +0100)
commit33d1405fc3264200d762c08728f4155335799456
tree09d9d206541dc1d161fe2e8dc4ebd017f0a845f1
parentaa022e608d4dec2f9e889aa1ff93fc93ba4b0ffb
net/thunderx: fix memory leak on rbdr desc ring failure

In nicvf_qset_rbdr_alloc(), we allocate memory for the 'rbdr'
structure but not released when allocate 'rbdr desc ring' fails.

Fixes: 7413feee662d ("net/thunderx: add device start/stop and close")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/thunderx/nicvf_ethdev.c