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>
This commit is contained in:
parent
c5e508f0c3
commit
fe4fc7d694
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user