[dpdk-stable] [dpdk-dev] [EXT] [PATCH] net/mvpp2: fix memory leak in error path

Ferruh Yigit ferruh.yigit at intel.com
Fri Oct 23 18:31:33 CEST 2020


On 10/22/2020 7:40 AM, Liron Himi wrote:

<...>

> Subject: [EXT] [dpdk-dev] [PATCH] net/mvpp2: fix memory leak in error path
> 
> External Email
> 
> ----------------------------------------------------------------------
> From: Yunjian Wang <wangyunjian at huawei.com>
> 
> In mrvl_create() allocated memory for 'mtr', we don't free it when profile get fails and it will lead to memory leak.
> 
> We can get profile at the beginning of the function to fix it, before calling mtr = rte_zmalloc_socket().
> 
> Fixes: cdb53f8da628 ("net/mvpp2: support metering")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
 >
 > Acked-by: Liron Himi <lironh at marvell.com>
 >

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


More information about the stable mailing list