numam-dpdk/drivers/net/mvpp2
Yunjian Wang 1b2c17d60d net/mvpp2: fix memory leak in error path
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: cdb53f8da6 ("net/mvpp2: support metering")
Cc: stable@dpdk.org

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Liron Himi <lironh@marvell.com>
2020-11-03 23:24:26 +01:00
..
meson.build drivers: add reasons for components being disabled 2019-07-02 23:21:11 +02:00
mrvl_ethdev.c eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
mrvl_ethdev.h net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
mrvl_flow.c net/mvpp2: fix build with gcc 10 2020-05-21 15:41:48 +02:00
mrvl_flow.h net/mvpp2: add init and deinit to flow 2018-09-28 01:41:03 +02:00
mrvl_mtr.c net/mvpp2: fix memory leak in error path 2020-11-03 23:24:26 +01:00
mrvl_mtr.h net/mvpp2: support metering 2018-09-28 01:41:03 +02:00
mrvl_qos.c net/mvpp2: align with MUSDK 18.09 2018-09-28 01:41:03 +02:00
mrvl_qos.h net/mvpp2: change default policer configuration 2018-09-28 01:41:03 +02:00
mrvl_tm.c drivers/net: update TM capability 2020-09-18 18:55:10 +02:00
mrvl_tm.h net/mvpp2: support traffic manager 2018-09-28 01:41:03 +02:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00