android_kernel_oneplus_msm8998/drivers/net/ethernet/intel
Dan Carpenter c243e96335 i40e: potential array underflow in i40e_vc_process_vf_msg()
If "vf_id" is smaller than hw->func_caps.vf_base_id then it leads to
an array underflow of the pf->vf[] array.  This is unlikely to happen
unless the hardware is bad, but it's a small change and it silences a
static checker warning.

Fixes: 7efa84b7ab ('i40e: support VFs on PFs other than 0')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2014-03-19 17:17:22 -07:00
..
e1000 drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
e1000e e1000e: fix the build error when PM is disabled 2014-03-18 13:25:41 -04:00
i40e i40e: potential array underflow in i40e_vc_process_vf_msg() 2014-03-19 17:17:22 -07:00
i40evf i40e/i40evf: reduce context descriptors 2014-03-19 17:17:21 -07:00
igb igb: remove references to long gone command line parameters 2014-03-18 13:25:41 -04:00
igbvf igbvf: Use pci_enable_msix_range() instead of pci_enable_msix() 2014-02-18 15:33:31 -05:00
ixgb ixgb: Call dev_kfree_skby_any instead of dev_kfree_skb. 2014-03-12 16:22:13 -04:00
ixgbe ixgbe: Don't receive packets when the napi budget == 0 2014-03-14 22:52:47 -04:00
ixgbevf net: Replace u64_stats_fetch_begin_bh to u64_stats_fetch_begin_irq 2014-03-14 22:41:36 -04:00
e100.c e100: Fix "disabling already-disabled device" warning 2014-01-30 16:46:14 -08:00
Kconfig i40e: add DCB option to Kconfig 2014-01-17 19:13:04 -08:00
Makefile i40evf: add driver to kernel build system 2013-12-31 16:27:49 -08:00