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

Ferruh Yigit ferruh.yigit at intel.com
Fri Oct 9 13:36:38 CEST 2020


On 10/9/2020 4:53 AM, Long Li wrote:
>> Subject: [dpdk-dev] [PATCH v2] net/netvsc: fix txq leak in error path
>>
>> From: Yunjian Wang <wangyunjian at huawei.com>
>>
>> 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 at dpdk.org
>>
>> Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
> 
> Acked-by: Long Li <longli at microsoft.com>
 >

Applied to dpdk-next-net/main, thanks.


More information about the dev mailing list