linux/drivers/net/ethernet/intel
Colin Ian King 9fe06a5128 iavf: fix dereference of null rx_buffer pointer
A recent commit efa14c3985 ("iavf: allow null RX descriptors") added
a null pointer sanity check on rx_buffer, however, rx_buffer is being
dereferenced before that check, which implies a null pointer dereference
bug can potentially occur.  Fix this by only dereferencing rx_buffer
until after the null pointer check.

Addresses-Coverity: ("Dereference before null check")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2019-06-28 16:00:10 -07:00
..
e1000 e1000: Use dma_wmb() instead of wmb() before doorbell writes 2019-06-28 15:59:43 -07:00
e1000e e1000e: Reduce boot time by tightening sleep ranges 2019-06-28 15:59:52 -07:00
fm10k Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2019-05-07 22:03:58 -07:00
i40e i40e/i40e_virtchnl_pf: Use struct_size() in kzalloc() 2019-06-26 09:18:54 -07:00
iavf iavf: fix dereference of null rx_buffer pointer 2019-06-28 16:00:10 -07:00
ice ice: Use struct_size() helper 2019-06-28 14:54:11 -07:00
igb igb: add RR2DCDELAY to ethtool registers dump 2019-06-28 16:00:06 -07:00
igbvf drivers: Remove explicit invocations of mmiowb() 2019-04-08 12:01:02 +01:00
igc igc: Cleanup the redundant code 2019-05-28 16:15:55 -07:00
ixgb cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
ixgbe ixgbe: fix potential u32 overflow on shift 2019-06-28 15:59:38 -07:00
ixgbevf ixgbevf: fix possible divide by zero in ixgbevf_update_itr 2019-06-26 09:18:54 -07:00
e100.c intel: correct return from set features callback 2019-03-19 14:18:49 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00