diff options
author | 2017-04-06 13:54:35 +0100 | |
---|---|---|
committer | 2017-04-08 08:15:34 -0700 | |
commit | 1f1120a5427c9e7894be63baaab828755e45a1c0 (patch) | |
tree | 1ab2928ee6a71dda5cb4ef0222d14d7a7649d98d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'net-SO_COOKIE' (diff) | |
download | wireguard-linux-1f1120a5427c9e7894be63baaab828755e45a1c0.tar.xz wireguard-linux-1f1120a5427c9e7894be63baaab828755e45a1c0.zip |
nfp: don't dereference a null nn->eth_port to print a warning
On the case where nn->eth_port is null the warning message
is printing the port by dereferencing this null pointer.
Remove the deference to avoid a crash when printing the
warning message.
Detected by CoverityScan, CID#1426198 ("Dereference after null check")
Fixes: ce22f5a2cbe3c627 ("nfp: separate high level and low level NSP headers")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions