linux/drivers/net/ethernet
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
..
3com Drivers: net: ethernet: 3com: 3c589_cs fixed coding style issues 2014-02-18 16:59:46 -05:00
8390
adaptec
adi
aeroflex
allwinner
alteon
altera Altera TSE: Add Altera Ethernet Driver Makefile and Kconfig 2014-03-17 21:26:57 -04:00
amd amd8111e: Don't receive packets when the napi budget == 0 2014-03-14 22:52:47 -04:00
apple
arc
atheros alx: add missing stats_lock spinlock init 2014-02-10 17:50:35 -08:00
broadcom bnx2x: Don't receive packets when the napi budget == 0 2014-03-14 22:52:47 -04:00
brocade Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-03-14 22:31:55 -04:00
cadence net: macb: DMA-unmap full rx-buffer 2014-03-05 20:40:25 -05:00
calxeda
chelsio cxgb4/iw_cxgb4: Doorbell Drop Avoidance Bug Fixes 2014-03-14 22:44:11 -04:00
cirrus
cisco enic: Don't receive packets when the napi budget == 0 2014-03-14 22:52:47 -04:00
davicom
dec drivers/net: tulip_remove_one needs to call pci_disable_device() 2014-02-17 00:19:24 -05:00
dlink
emulex net: Replace u64_stats_fetch_begin_bh to u64_stats_fetch_begin_irq 2014-03-14 22:41:36 -04:00
faraday
freescale fs_enet: Don't receive packets when the napi budget == 0 2014-03-14 22:52:47 -04:00
fujitsu
hp
i825xx
ibm ibmveth: Don't receive packets when the napi budget == 0 2014-03-14 22:52:47 -04:00
icplus
intel i40e: potential array underflow in i40e_vc_process_vf_msg() 2014-03-19 17:17:22 -07:00
marvell sky2: Don't receive packets when the napi budget == 0 2014-03-14 22:52:48 -04:00
mellanox mlx4: Don't receive packets when the napi budget == 0 2014-03-14 22:52:48 -04:00
micrel
microchip
moxa
myricom myri10ge: Use pci_enable_msix_range() instead of pci_enable_msix() 2014-02-18 15:33:32 -05:00
natsemi
neterion vxge: Don't receive packets when the napi budget == 0 2014-03-14 22:52:48 -04:00
nuvoton
nvidia net: Replace u64_stats_fetch_begin_bh to u64_stats_fetch_begin_irq 2014-03-14 22:41:36 -04:00
nxp
octeon
oki-semi
packetengines
pasemi
qlogic Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-03-05 20:32:02 -05:00
rdc
realtek net: Replace u64_stats_fetch_begin_bh to u64_stats_fetch_begin_irq 2014-03-14 22:41:36 -04:00
renesas sh_eth: fold netif_msg_*() and netdev_*() calls into netif_*() invocations 2014-03-17 16:06:36 -04:00
seeq
sfc sfc: Don't receive packets when the napi budget == 0 2014-03-14 22:52:48 -04:00
sgi
silan
sis
smsc
stmicro stmmac: dwmac-sti: fix broken STiD127 compatibility 2014-03-11 16:14:31 -04:00
sun niu: Use pci_enable_msix_range() instead of pci_enable_msix() 2014-02-18 15:33:34 -05:00
tehuti
ti net: eth: cpsw: Use net_device_stats from struct net_device 2014-03-10 21:53:01 -04:00
tile tilepro: Don't receive packets when the napi budget == 0 2014-03-14 22:52:48 -04:00
toshiba tc35815: Don't receive packets when the napi budget == 0 2014-03-14 22:52:48 -04:00
tundra
via via: fix a punctuation typo 2014-03-18 15:18:52 -04:00
wiznet net: w5100: Use devm_ioremap_resource() 2014-02-28 16:57:24 -05:00
xilinx xilinx: Convert uses of __constant_<foo> to <foo> 2014-03-12 15:28:06 -04:00
xircom
xscale
dnet.c
dnet.h
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig net: ethernet: Change Ethernet Makefile and Kconfig for Altera TSE driver 2014-03-17 21:26:57 -04:00
korina.c
lantiq_etop.c netdevice: add queue selection fallback handler for ndo_select_queue 2014-02-17 00:36:34 -05:00
Makefile net: ethernet: Change Ethernet Makefile and Kconfig for Altera TSE driver 2014-03-17 21:26:57 -04:00
netx-eth.c
s6gmac.c