i40e: Fix a few potential VF dereferences
authorAnjali Singhai Jain <anjali.singhai@intel.com>
Thu, 10 Jul 2014 07:58:21 +0000 (07:58 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 15 Aug 2014 10:50:37 +0000 (03:50 -0700)
commit6e7b5bd32c7cd303eec4880149636ffbc2098df8
tree083dfe2d28db64603459b3320e361363f8e74321
parent478c9e74204f7bd5f97cca92e917749434ed6f92
i40e: Fix a few potential VF dereferences

In some functions we might be doing potential dereference
without a check. This patch puts the check in place for all these
functions. Also fix the "for loops" so that we increment VF at the
right place so that we always do it even if we are short-circuiting
the loop through continue.

Change-ID: Id4276cfb1e841031bb7b6d6790c414242f364a9f
Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c