aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorShannon Nelson <shannon.nelson@intel.com>2015-02-21 01:45:28 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-02-26 07:54:03 -0500
commit65d13461d7c3fa822ff2000d2c0fe5f5b1943cb9 (patch)
tree4a73ffd9342cdee9af54367ed92b401973d7c7c2 /drivers/net
parent2c47e351f61b66f2e870bfd634e471a6ab1af920 (diff)
i40e: check pointers before use
Make sure we don't try to dereference NULL pointers when returning values from the AdminQ calls. Change-ID: Ia6694f2f415d50acf0aba063c863568742799aff Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Tested-by: Jim Young <james.m.young@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c
index 2a705a116227..6aea65dae5ed 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_common.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_common.c
@@ -2847,7 +2847,7 @@ i40e_status i40e_aq_add_udp_tunnel(struct i40e_hw *hw,
2847 2847
2848 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details); 2848 status = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details);
2849 2849
2850 if (!status) 2850 if (!status && filter_index)
2851 *filter_index = resp->index; 2851 *filter_index = resp->index;
2852 2852
2853 return status; 2853 return status;