From: Natalie Samsonov <nsams...@marvell.com> Fixes: 0ddc9b815b11 ("net/mrvl: add net PMD skeleton") Cc: sta...@dpdk.org
Signed-off-by: Natalie Samsonov <nsams...@marvell.com> Signed-off-by: Tomasz Duszynski <t...@semihalf.com> --- drivers/net/mrvl/mrvl_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mrvl/mrvl_ethdev.c b/drivers/net/mrvl/mrvl_ethdev.c index ac8f2d6..e313768 100644 --- a/drivers/net/mrvl/mrvl_ethdev.c +++ b/drivers/net/mrvl/mrvl_ethdev.c @@ -658,7 +658,8 @@ mrvl_dev_stop(struct rte_eth_dev *dev) pp2_cls_qos_tbl_deinit(priv->qos_tbl); priv->qos_tbl = NULL; } - pp2_ppio_deinit(priv->ppio); + if (priv->ppio) + pp2_ppio_deinit(priv->ppio); priv->ppio = NULL; } -- 2.7.4