net/fm10k: fix memory leak when Tx thresh check fails
authorYunjian Wang <wangyunjian@huawei.com>
Wed, 7 Oct 2020 07:36:46 +0000 (15:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 9 Oct 2020 11:17:43 +0000 (13:17 +0200)
commit9e4f075bc500dafe4568edf99b9a1161b554316e
tree87fcd48abe9ae8bfa233ad271fde016b76a4b97f
parent482a1d34b60e7b918a39b2ccd32e06638f8c5aa4
net/fm10k: fix memory leak when Tx thresh check fails

In fm10k_tx_queue_setup(), we allocate memory for the queue
structure but not released when Tx thresh check fails.

Fixes: 98068e0e044e ("fm10k: add Tx queue setup/release")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Xiao Wang <xiao.w.wang@intel.com>
drivers/net/fm10k/fm10k_ethdev.c