From: Natalie Samsonov Date: Thu, 15 Mar 2018 07:51:57 +0000 (+0100) Subject: net/mrvl: fix crash when port is closed without starting X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b4d0fff30807adaac6722689eaa72b4460632d80;p=dpdk.git net/mrvl: fix crash when port is closed without starting Fixes: 0ddc9b815b11 ("net/mrvl: add net PMD skeleton") Cc: stable@dpdk.org Signed-off-by: Natalie Samsonov Signed-off-by: Tomasz Duszynski --- diff --git a/drivers/net/mrvl/mrvl_ethdev.c b/drivers/net/mrvl/mrvl_ethdev.c index ac8f2d65bf..e31376860d 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; }