From: Ferruh Yigit Date: Mon, 5 Nov 2018 15:25:22 +0000 (+0000) Subject: net/mvpp2: fix possible uninitialized variable access X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fe4fc7d694386457edb793e41e2422243872c5a8;p=dpdk.git net/mvpp2: fix possible uninitialized variable access Fixes: cdb53f8da628 ("net/mvpp2: support metering") Signed-off-by: Ferruh Yigit Acked-by: Tomasz Duszynski --- diff --git a/drivers/net/mvpp2/mrvl_mtr.c b/drivers/net/mvpp2/mrvl_mtr.c index 9cd53bed55..9adcd9751b 100644 --- a/drivers/net/mvpp2/mrvl_mtr.c +++ b/drivers/net/mvpp2/mrvl_mtr.c @@ -422,7 +422,7 @@ mrvl_meter_profile_update(struct rte_eth_dev *dev, uint32_t mtr_id, struct mrvl_priv *priv = dev->data->dev_private; struct mrvl_mtr_profile *profile; struct mrvl_mtr *mtr; - int ret, enabled; + int ret, enabled = 0; if (!priv->ppio) return -rte_mtr_error_set(error, EPERM,