OSDN Git Service

i40e: add check for null VSI
authorJohn Underwood <johnx.underwood@intel.com>
Thu, 18 Feb 2016 17:19:24 +0000 (09:19 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 19 Feb 2016 07:52:45 +0000 (23:52 -0800)
commitf534039dd8ab39cb3259e5860d2be3b0e70aacbf
treebcfa790eac52cd0f57cc2f0ff2b62b2b84e61506
parentfe726082728da9f653d4e747baf0816d826fc626
i40e: add check for null VSI

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>
drivers/net/ethernet/intel/i40e/i40e_main.c