From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B16AFA0471 for ; Fri, 19 Jul 2019 02:53:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4386D2C2B; Fri, 19 Jul 2019 02:53:58 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 910E228EE; Fri, 19 Jul 2019 02:53:55 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jul 2019 17:53:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,280,1559545200"; d="scan'208";a="179450689" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 18 Jul 2019 17:53:54 -0700 Received: from fmsmsx123.amr.corp.intel.com (10.18.125.38) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 18 Jul 2019 17:53:54 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx123.amr.corp.intel.com (10.18.125.38) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 18 Jul 2019 17:53:53 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.134]) by shsmsx102.ccr.corp.intel.com ([169.254.2.3]) with mapi id 14.03.0439.000; Fri, 19 Jul 2019 08:53:51 +0800 From: "Xing, Beilei" To: "Lipiec, Herakliusz" , "Zhang, Qi Z" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH v2] net/i40e: add return check coverity Thread-Index: AQHVPXc46H/+1xXf9k+prEj1GlG25qbRHd2w Date: Fri, 19 Jul 2019 00:53:50 +0000 Message-ID: <94479800C636CB44BD422CB454846E013CE07BED@SHSMSX101.ccr.corp.intel.com> References: <20190718131623.22047-1-herakliusz.lipiec@intel.com> <20190718144448.13286-1-herakliusz.lipiec@intel.com> In-Reply-To: <20190718144448.13286-1-herakliusz.lipiec@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] net/i40e: add return check coverity 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Lipiec, Herakliusz > Sent: Thursday, July 18, 2019 10:45 PM > To: Xing, Beilei ; Zhang, Qi Z > Cc: dev@dpdk.org; Lipiec, Herakliusz ; > stable@dpdk.org > Subject: [PATCH v2] net/i40e: add return check coverity >=20 > add return check for i40e_vsi_delete_mac call in > rte_pmd_i40e_remove_vf_mac_addr as per coverity issue. >=20 > v2: > add a fixline to commit message >=20 > Coverity Issue: 277224 > Cc: stable@dpdk.org > Fixes: e0cb96204b71 ("net/i40e: add support for representor ports") > Signed-off-by: Herakliusz Lipiec > --- > drivers/net/i40e/rte_pmd_i40e.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/net/i40e/rte_pmd_i40e.c > b/drivers/net/i40e/rte_pmd_i40e.c index 24281c293..4c3c7088a 100644 > --- a/drivers/net/i40e/rte_pmd_i40e.c > +++ b/drivers/net/i40e/rte_pmd_i40e.c > @@ -581,6 +581,7 @@ rte_pmd_i40e_remove_vf_mac_addr(uint16_t port, > uint16_t vf_id, > struct i40e_pf_vf *vf; > struct i40e_vsi *vsi; > struct i40e_pf *pf; > + int ret; >=20 > if (i40e_validate_mac_addr((u8 *)mac_addr) !=3D I40E_SUCCESS) > return -EINVAL; > @@ -609,8 +610,9 @@ rte_pmd_i40e_remove_vf_mac_addr(uint16_t port, > uint16_t vf_id, > rte_ether_addr_copy(&null_mac_addr, &vf->mac_addr); >=20 > /* Remove the mac */ > - i40e_vsi_delete_mac(vsi, mac_addr); > - > + ret =3D i40e_vsi_delete_mac(vsi, mac_addr); > + if (ret !=3D I40E_SUCCESS) > + return ret; > return 0; > } >=20 > -- > 2.17.2 Acked-by: Beilei Xing