Re: [dpdk-dev] [PATCH v2] net/netvsc: fix txq leak in error path

2020-10-09 Thread Long Li
>Subject: [dpdk-dev] [PATCH v2] net/netvsc: fix txq leak in error path > >From: Yunjian Wang > >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 beginn

[dpdk-dev] [PATCH v2] net/netvsc: fix txq leak in error path

2020-10-06 Thread wangyunjian
From: Yunjian Wang 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: s