diff options
author | 2019-06-19 15:30:44 +0100 | |
---|---|---|
committer | 2019-06-28 16:00:10 -0700 | |
commit | 9fe06a51287b2d41baef7ece94df34b5abf19b90 (patch) | |
tree | 5af0454ba2e181d1cd391fda6ac1941a5cd854fe /tools/perf/scripts/python/export-to-postgresql.py | |
parent | igb: add RR2DCDELAY to ethtool registers dump (diff) | |
download | wireguard-linux-9fe06a51287b2d41baef7ece94df34b5abf19b90.tar.xz wireguard-linux-9fe06a51287b2d41baef7ece94df34b5abf19b90.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions