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: cc0251813277 ("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
..
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:15 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-10-16 19:18:47 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-10-06 14:43:40 +02:00
2020-10-16 19:18:47 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-10-08 19:58:10 +02:00
2020-09-30 19:19:14 +02:00
2020-10-09 13:17:43 +02:00
2020-09-30 19:19:14 +02:00
2020-10-09 13:17:43 +02:00
2020-10-13 14:37:15 +02:00
2020-10-09 13:17:43 +02:00
2020-10-13 14:42:02 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-10-13 16:35:48 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-10-09 13:17:42 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-10-16 19:18:47 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-10-15 22:54:21 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-10-08 19:58:11 +02:00
2020-09-30 19:19:15 +02:00
2020-09-30 19:19:15 +02:00
2020-10-15 02:14:13 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-09-30 19:19:14 +02:00
2020-09-08 00:09:50 +02:00
2020-09-30 23:16:56 +02:00
2020-10-13 16:35:48 +02:00
2020-09-30 19:19:14 +02:00
2020-06-30 00:02:54 +02:00