All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [next PATCH S76-V2 01/13] i40e: Fix for unused value issue found by static analysis
@ 2017-07-14 13:10 Alice Michael
  2017-07-14 13:10 ` [Intel-wired-lan] [next PATCH S76-V2 02/13] i40e: remove workaround for resetting XPS on newer kernels Alice Michael
                   ` (12 more replies)
  0 siblings, 13 replies; 28+ messages in thread
From: Alice Michael @ 2017-07-14 13:10 UTC (permalink / raw)
  To: intel-wired-lan

From: Carolyn Wyborny <carolyn.wyborny@intel.com>

This patch fixes an issue where an error return value is
set, but without an immediate exit, the value can be overwritten
by the following code execution.  The condition  at this point
is not fatal, so remove the error assignment and comment the
intent for future code maintainers

Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
---
 drivers/net/ethernet/intel/i40e/i40e_main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 998ad96..9ee1d0f 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -9865,13 +9865,15 @@ static int i40e_add_vsi(struct i40e_vsi *vsi)
 			 */
 			ret = i40e_vsi_config_tc(vsi, enabled_tc);
 			if (ret) {
+				/* Single TC condition is not fatal,
+				 * message and continue
+				 */
 				dev_info(&pf->pdev->dev,
 					 "failed to configure TCs for main VSI tc_map 0x%08x, err %s aq_err %s\n",
 					 enabled_tc,
 					 i40e_stat_str(&pf->hw, ret),
 					 i40e_aq_str(&pf->hw,
 						    pf->hw.aq.asq_last_status));
-				ret = -ENOENT;
 			}
 		}
 		break;
-- 
2.9.3


^ permalink raw reply related	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2017-07-20 19:27 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-14 13:10 [Intel-wired-lan] [next PATCH S76-V2 01/13] i40e: Fix for unused value issue found by static analysis Alice Michael
2017-07-14 13:10 ` [Intel-wired-lan] [next PATCH S76-V2 02/13] i40e: remove workaround for resetting XPS on newer kernels Alice Michael
2017-07-19 19:11   ` Bowers, AndrewX
2017-07-14 13:10 ` [Intel-wired-lan] [next PATCH S76-V2 03/13] i40e: move enabling icr0 into i40e_update_enable_itr Alice Michael
2017-07-19 19:16   ` Bowers, AndrewX
2017-07-14 13:10 ` [Intel-wired-lan] [next PATCH S76-V2 04/13] i40e: initialize our affinity_mask based on cpu_possible_mask Alice Michael
2017-07-19 19:26   ` Bowers, AndrewX
2017-07-14 13:10 ` [Intel-wired-lan] [next PATCH S76-V2 05/13] i40e: invert logic for checking incorrect cpu vs irq affinity Alice Michael
2017-07-19 20:37   ` Bowers, AndrewX
2017-07-14 13:10 ` [Intel-wired-lan] [next PATCH S76-V2 06/13] i40e/i40evf: remove ULTRA latency mode Alice Michael
2017-07-19 20:41   ` Bowers, AndrewX
2017-07-14 13:10 ` [Intel-wired-lan] [next PATCH S76-V2 07/13] i40e/i40evf: avoid dynamic ITR updates when polling or low packet rate Alice Michael
2017-07-20 18:08   ` Bowers, AndrewX
2017-07-14 13:10 ` [Intel-wired-lan] [next PATCH S76-V2 08/13] i40e/i40evf: rename bytes_per_int to bytes_per_usec Alice Michael
2017-07-20 18:10   ` Bowers, AndrewX
2017-07-14 13:10 ` [Intel-wired-lan] [next PATCH S76-V2 09/13] i40e: Fix unqualified module message while bringing link up Alice Michael
2017-07-20 18:13   ` Bowers, AndrewX
2017-07-14 13:10 ` [Intel-wired-lan] [next PATCH S76-V2 10/13] i40e: Fix link down message when interface is brought up Alice Michael
2017-07-20 18:15   ` Bowers, AndrewX
2017-07-14 13:10 ` [Intel-wired-lan] [next PATCH S76-V2 11/13] i40e: Fix unrecognized PHY type warning message for 25G AOC/ACC Alice Michael
2017-07-15  9:01   ` kbuild test robot
2017-07-15 10:26   ` kbuild test robot
2017-07-20 19:26   ` Bowers, AndrewX
2017-07-14 13:10 ` [Intel-wired-lan] [next PATCH S76-V2 12/13] i40e: simplify member variable accesses Alice Michael
2017-07-20 19:26   ` Bowers, AndrewX
2017-07-14 13:10 ` [Intel-wired-lan] [next PATCH S76-V2 13/13] i40e: relax warning message in case of version mismatch Alice Michael
2017-07-20 19:27   ` Bowers, AndrewX
2017-07-19 18:57 ` [Intel-wired-lan] [next PATCH S76-V2 01/13] i40e: Fix for unused value issue found by static analysis Bowers, AndrewX

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.