summaryrefslogtreecommitdiff
path: root/drivers/net/i40e/rte_pmd_i40e.c
diff options
context:
space:
mode:
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>2017-08-10 11:12:14 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2017-10-06 02:49:47 +0200
commit7f109dbac5b181593f5bcd64cf891137e7c5a9cb (patch)
treed04e4ca69d095aea29d76465b13c4962ce152b14 /drivers/net/i40e/rte_pmd_i40e.c
parenta2ba854ec616b686ae3e16380a47aea1898e9c74 (diff)
downloaddpdk-7f109dbac5b181593f5bcd64cf891137e7c5a9cb.zip
dpdk-7f109dbac5b181593f5bcd64cf891137e7c5a9cb.tar.gz
dpdk-7f109dbac5b181593f5bcd64cf891137e7c5a9cb.tar.xz
net/i40e: fix return code not checked
Calling i40e_vsi_delete_mac without checking return value (as is done elsewhere 5 out of 6 times) Coverity issue: 140735 Fixes: 43c89d5a4fde ("net/i40e: set VF MAC from PF") Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'drivers/net/i40e/rte_pmd_i40e.c')
-rw-r--r--drivers/net/i40e/rte_pmd_i40e.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/i40e/rte_pmd_i40e.c b/drivers/net/i40e/rte_pmd_i40e.c
index f12b7f4..950a0d6 100644
--- a/drivers/net/i40e/rte_pmd_i40e.c
+++ b/drivers/net/i40e/rte_pmd_i40e.c
@@ -591,7 +591,9 @@ rte_pmd_i40e_set_vf_mac_addr(uint8_t port, uint16_t vf_id,
/* Remove all existing mac */
TAILQ_FOREACH_SAFE(f, &vsi->mac_list, next, temp)
- i40e_vsi_delete_mac(vsi, &f->mac_info.mac_addr);
+ if (i40e_vsi_delete_mac(vsi, &f->mac_info.mac_addr)
+ != I40E_SUCCESS)
+ PMD_DRV_LOG(WARNING, "Delete MAC failed");
return 0;
}