From fe4fc7d694386457edb793e41e2422243872c5a8 Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Mon, 5 Nov 2018 15:25:22 +0000 Subject: [PATCH] net/mvpp2: fix possible uninitialized variable access Fixes: cdb53f8da628 ("net/mvpp2: support metering") Signed-off-by: Ferruh Yigit Acked-by: Tomasz Duszynski --- drivers/net/mvpp2/mrvl_mtr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1