summaryrefslogtreecommitdiff
path: root/drivers/net/mvpp2
diff options
context:
space:
mode:
authorFerruh Yigit <ferruh.yigit@intel.com>2018-11-05 15:25:22 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2018-11-16 11:13:51 +0100
commitfe4fc7d694386457edb793e41e2422243872c5a8 (patch)
tree1107c8a7fd6a5e94c6243f0955c1d5643bbc9fd6 /drivers/net/mvpp2
parentc5e508f0c3f2c1a4cc943f588235dd7be0ab6dba (diff)
downloaddpdk-next-eventdev-fe4fc7d694386457edb793e41e2422243872c5a8.zip
dpdk-next-eventdev-fe4fc7d694386457edb793e41e2422243872c5a8.tar.gz
dpdk-next-eventdev-fe4fc7d694386457edb793e41e2422243872c5a8.tar.xz
net/mvpp2: fix possible uninitialized variable access
Fixes: cdb53f8da628 ("net/mvpp2: support metering") Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Tomasz Duszynski <tdu@semihalf.com>
Diffstat (limited to 'drivers/net/mvpp2')
-rw-r--r--drivers/net/mvpp2/mrvl_mtr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mvpp2/mrvl_mtr.c b/drivers/net/mvpp2/mrvl_mtr.c
index 9cd53be..9adcd97 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,