numam-dpdk/drivers/net/netvsc
Yunjian Wang f3013acfc1 net/netvsc: fix Tx queue leak in error path
In hn_dev_tx_queue_setup() allocated memory for txq, we don't free it
when error happens and it will lead to memory leak.

We can check for tx_free_thresh at the beginning of the function to
fix it, before calling txq = rte_zmalloc_socket().

Fixes: cc02518132 ("net/netvsc: split send buffers from Tx descriptors")
Cc: stable@dpdk.org

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Long Li <longli@microsoft.com>
2020-10-16 19:18:47 +02:00
..
hn_ethdev.c drivers/net: check process type in close operation 2020-09-30 19:19:14 +02:00
hn_logs.h net/netvsc: add Hyper-V network device 2018-07-13 23:48:07 +02:00
hn_nvs.c net/netvsc: fix multiple channel Rx 2020-09-18 18:55:06 +02:00
hn_nvs.h net/netvsc: fix comment spelling 2020-05-11 22:27:39 +02:00
hn_rndis.c ethdev: remove underscore prefix from internal API 2020-09-18 18:55:08 +02:00
hn_rndis.h net/netvsc: support configuring RSS parameters 2019-06-28 20:32:18 +02:00
hn_rxtx.c net/netvsc: fix Tx queue leak in error path 2020-10-16 19:18:47 +02:00
hn_var.h net/netvsc: fix multiple channel Rx 2020-09-18 18:55:06 +02:00
hn_vf.c net/netvsc: do not query VF link state 2020-05-28 17:57:07 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
ndis.h net/netvsc: fix definition of offload values 2019-07-05 01:52:01 +02:00
rndis.h net/netvsc: add Hyper-V network device 2018-07-13 23:48:07 +02:00
rte_pmd_netvsc_version.map version: 20.11-rc0 2020-08-12 11:32:16 +02:00