On 8/8/2020 10:58 AM, wangyunjian wrote:
> From: Yunjian Wang <[email protected]>
> 
> When setup tx queues, we will create a mempool for the 'gso_ctx'.
> The mempool is not freed when closing tap device. If free the tap
> device and create it with different name, it will create a new
> mempool. This maybe cause an OOM.
> 
> The snprintf function return value is not checked and the mempool
> name may be truncated. This patch also fix it.
> 
> Fixes: 050316a88313 ("net/tap: support TSO (TCP Segment Offload)")
> Cc: [email protected]
> 
> Signed-off-by: Yunjian Wang <[email protected]>

Reviewed-by: Ferruh Yigit <[email protected]>

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

Reply via email to