From: "Xing, Beilei" <beilei.xing@intel.com>
To: "Lipiec, Herakliusz" <herakliusz.lipiec@intel.com>,
"Zhang, Qi Z" <qi.z.zhang@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>, "stable@dpdk.org" <stable@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] net/i40e: add return check coverity
Date: Thu, 18 Jul 2019 14:10:38 +0000 [thread overview]
Message-ID: <94479800C636CB44BD422CB454846E013CE07628@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <20190718131623.22047-1-herakliusz.lipiec@intel.com>
Hi,
> -----Original Message-----
> From: Lipiec, Herakliusz
> Sent: Thursday, July 18, 2019 9:16 PM
> To: Xing, Beilei <beilei.xing@intel.com>; Zhang, Qi Z <qi.z.zhang@intel.com>
> Cc: dev@dpdk.org; Lipiec, Herakliusz <herakliusz.lipiec@intel.com>;
> stable@dpdk.org
> Subject: [PATCH] net/i40e: add return check coverity
>
> add return check for i40e_vsi_delete_mac call in
> rte_pmd_i40e_remove_vf_mac_addr as per coverity issue.
>
> Coverity Issue: 277224
Fix line should be added, thanks.
> Cc: stable@dpdk.org
> Signed-off-by: Herakliusz Lipiec <herakliusz.lipiec@intel.com>
> ---
> drivers/net/i40e/rte_pmd_i40e.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> 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;
>
> if (i40e_validate_mac_addr((u8 *)mac_addr) != 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);
>
> /* Remove the mac */
> - i40e_vsi_delete_mac(vsi, mac_addr);
> -
> + ret = i40e_vsi_delete_mac(vsi, mac_addr);
> + if (ret != I40E_SUCCESS)
> + return ret;
> return 0;
> }
>
> --
> 2.17.2
next prev parent reply other threads:[~2019-07-18 14:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-18 13:16 Herakliusz Lipiec
2019-07-18 14:10 ` Xing, Beilei [this message]
2019-07-18 14:44 ` [dpdk-dev] [PATCH v2] " Herakliusz Lipiec
2019-07-19 0:53 ` Xing, Beilei
2019-07-19 1:00 ` Zhang, Qi Z
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=94479800C636CB44BD422CB454846E013CE07628@SHSMSX101.ccr.corp.intel.com \
--to=beilei.xing@intel.com \
--cc=dev@dpdk.org \
--cc=herakliusz.lipiec@intel.com \
--cc=qi.z.zhang@intel.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).