]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: add check for null VSI
authorJohn Underwood <johnx.underwood@intel.com>
Thu, 18 Feb 2016 17:19:24 +0000 (09:19 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:37:49 +0000 (08:37 -0800)
commit5e9ea39a595bbd8f3dc6a023758dbb62632ad8e1
tree335832ecbba45846ff98b7eaf1a5b10b12650531
parent19790fab6d268223d37d0f8a8fe7702cae830ea0
i40e: add check for null VSI

Orabug: 22342532

Return from i40e_vsi_reinit_setup() if vsi param is NULL.
This makes this code consistent with all the other code that
checks for NULL before using one of the VSI pointers accessed
with an indexed variable. (Indexed VSI pointers are
intentionally set to NULL in i40e_vsi_clear() and
i40e_remove().

Change-ID: I3bc8b909c70fd2439334eeae994d151f61480985
Signed-off-by: John Underwood <johnx.underwood@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit f534039dd8ab39cb3259e5860d2be3b0e70aacbf)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c