Star64_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
i40e
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
igc
ixgb
ixgbe ixgbe: fix potential u32 overflow on shift 2019-06-28 15:59:38 -07:00
ixgbevf
e100.c
Kconfig
Makefile