From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) by dpdk.org (Postfix) with ESMTP id 57ED04CB5 for ; Thu, 15 Nov 2018 15:38:02 +0100 (CET) Received: by mail-ed1-f66.google.com with SMTP id f23so7671769edb.3 for ; Thu, 15 Nov 2018 06:38:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=+Jt83/jrTwQH4FEvfbLNoMxJ1PVRwhP5yl/o92mcGn0=; b=urP6Xm4n9c4FDohcCMmiQlfEedfuTLl9US9mk2bLEGiOgfc4XxRX6nTsLvz3SBCueY cGES3ZfJJnBfQaIS77nnkxAYym5o3WiZatsuUlq+sv0ZaHebCuUP0BQmYqOKwEFYj5LQ kFN3sPr15hLVPBNXa57nsgWeEk4pCzQz6oChcntQ48I3E3GEcRxAbOXcfxdIw9RrVsVW dyrnjzE4ntgcCmdRdVjH96U5rfKXXZvS2Kq1BeAF8Z0hen3ujFRuGqTY0nz8M9ufayw7 NKGqbtgZUoE1P0li2V+drYZ6qGAptpxVna7qtf4x8IWlZt5B5Mq4d4FKT7VhvFjzT5eU B5IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=+Jt83/jrTwQH4FEvfbLNoMxJ1PVRwhP5yl/o92mcGn0=; b=G2yppEWv3+rcQ6oZxOrp1EShGOR87qQ/HWV4kD83/xukMSg9K5GLpBrVHZRyXuoAeh WuyCaSk2cWSSYqvSfPSnytGc2KNfJpt1x7Zqs+yOCnR/hEe0moeIop+A8rxuuPbI+F0c Z1D8+Sd0OvysXoqFxj46IqHumVd7b1gHmn1KU9DGgJ5+IPoqxc9zyjSHSR7aJYWx/WJY Z5Vg5IJ8E16VjDvJB2bVySRTw5eq/V6Qsqy4YlIddGbP7hiisEZmclOyO5ZceIe5G6z9 HbsQYRnZVkatWv8cQAO12WAMV2xNw6z/yQgJuomN+/lyrNw1uJ8+4kjtgmXd4W9BDLr6 E3PQ== X-Gm-Message-State: AGRZ1gLx5R9MOgvnqJBdAcY/ubl3Q4n5f89AaRCSHxzDFK2j9TFS0w4c X3aY9ceo+nZL4zAqHGNX40nvow== X-Google-Smtp-Source: AJdET5dKtll3NKpJHk9P9lz3z1RKedAlZojFeUp+t40vn07fezSfGC3X0RB9atbMMVcOW21xRh/JEA== X-Received: by 2002:aa7:cf88:: with SMTP id z8mr6145817edx.208.1542292681946; Thu, 15 Nov 2018 06:38:01 -0800 (PST) Received: from localhost (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id z42sm2849739edb.22.2018.11.15.06.38.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Nov 2018 06:38:01 -0800 (PST) Date: Thu, 15 Nov 2018 15:38:00 +0100 From: Tomasz Duszynski To: Ferruh Yigit Cc: Tomasz Duszynski , Dmitri Epshtein , Natalie Samsonov , dev@dpdk.org Message-ID: <20181115143800.GA10746@sh> References: <20181105152522.66712-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20181105152522.66712-1-ferruh.yigit@intel.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH] net/mvpp2: fix possible uninitialized variable access X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2018 14:38:02 -0000 On Mon, Nov 05, 2018 at 03:25:22PM +0000, Ferruh Yigit wrote: > Fixes: cdb53f8da628 ("net/mvpp2: support metering") > > Signed-off-by: Ferruh Yigit > --- > 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, ui= nt32_t mtr_id, > struct mrvl_priv *priv =3D dev->data->dev_private; > struct mrvl_mtr_profile *profile; > struct mrvl_mtr *mtr; > - int ret, enabled; > + int ret, enabled =3D 0; > > if (!priv->ppio) > return -rte_mtr_error_set(error, EPERM, > -- > 2.17.2 > Looks good. Acked-by: Tomasz Duszynski -- - Tomasz Duszy=C5=84ski