* [dpdk-dev] [PATCH] net/mvpp2: fix possible uninitialized variable access
@ 2018-11-05 15:25 Ferruh Yigit
2018-11-15 14:38 ` Tomasz Duszynski
0 siblings, 1 reply; 3+ messages in thread
From: Ferruh Yigit @ 2018-11-05 15:25 UTC (permalink / raw)
To: Tomasz Duszynski, Dmitri Epshtein, Natalie Samsonov; +Cc: dev, Ferruh Yigit
Fixes: cdb53f8da628 ("net/mvpp2: support metering")
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
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 9cd53bed5..9adcd9751 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.17.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] net/mvpp2: fix possible uninitialized variable access
2018-11-05 15:25 [dpdk-dev] [PATCH] net/mvpp2: fix possible uninitialized variable access Ferruh Yigit
@ 2018-11-15 14:38 ` Tomasz Duszynski
2018-11-16 10:37 ` Ferruh Yigit
0 siblings, 1 reply; 3+ messages in thread
From: Tomasz Duszynski @ 2018-11-15 14:38 UTC (permalink / raw)
To: Ferruh Yigit; +Cc: Tomasz Duszynski, Dmitri Epshtein, Natalie Samsonov, dev
On Mon, Nov 05, 2018 at 03:25:22PM +0000, Ferruh Yigit wrote:
> Fixes: cdb53f8da628 ("net/mvpp2: support metering")
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> ---
> 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 9cd53bed5..9adcd9751 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.17.2
>
Looks good.
Acked-by: Tomasz Duszynski <tdu@semihalf.com>
--
- Tomasz Duszyński
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] net/mvpp2: fix possible uninitialized variable access
2018-11-15 14:38 ` Tomasz Duszynski
@ 2018-11-16 10:37 ` Ferruh Yigit
0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2018-11-16 10:37 UTC (permalink / raw)
To: Tomasz Duszynski; +Cc: Dmitri Epshtein, Natalie Samsonov, dev
On 11/15/2018 2:38 PM, Tomasz Duszynski wrote:
> On Mon, Nov 05, 2018 at 03:25:22PM +0000, Ferruh Yigit wrote:
>> Fixes: cdb53f8da628 ("net/mvpp2: support metering")
>>
>> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
>
> Acked-by: Tomasz Duszynski <tdu@semihalf.com>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-11-16 10:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-05 15:25 [dpdk-dev] [PATCH] net/mvpp2: fix possible uninitialized variable access Ferruh Yigit
2018-11-15 14:38 ` Tomasz Duszynski
2018-11-16 10:37 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).