Searched hist:"9 fe06a51287b2d41baef7ece94df34b5abf19b90" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_txrx.c | diff 9fe06a51287b2d41baef7ece94df34b5abf19b90 Wed Jun 19 09:30:44 CDT 2019 Colin Ian King <colin.king@canonical.com> iavf: fix dereference of null rx_buffer pointer
A recent commit efa14c3985828d ("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>
|