numam-dpdk/drivers
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
..
baseband baseband/turbo_sw: detect dependencies automatically 2020-10-14 21:32:11 +02:00
bus bus/pci: clear undefined bits in Windows segment parsing 2020-10-16 14:41:32 +02:00
common net/octeontx2: fix jumbo frame crash 2020-10-15 22:54:21 +02:00
compress mbuf: remove deprecated function and macro aliases 2020-09-19 00:25:37 +02:00
crypto event/octeontx2: add crypto adapter datapath 2020-10-15 22:27:49 +02:00
event eventdev: express DLB/DLB2 PMD constraints 2020-10-15 23:16:07 +02:00
mempool net/octeontx2: fix jumbo frame crash 2020-10-15 22:54:21 +02:00
net net/netvsc: fix Tx queue leak in error path 2020-10-16 19:18:47 +02:00
raw raw/dpaa2_qdma: fix reset 2020-10-11 22:02:55 +02:00
regex regex/octeontx2: introduce REE driver 2020-10-14 10:41:21 +02:00
vdpa vdpa/ifc: fix build with recent kernels 2020-10-02 18:38:33 +02:00
meson.build common/mlx5: introduce layer for multiple class drivers 2020-07-28 19:01:11 +02:00