linux/drivers/net/ethernet/netronome/nfp
Colin Ian King 1f1120a542 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: ce22f5a2cb ("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>
2017-04-08 08:15:34 -07:00
..
nfpcore nfp: NSP backend for link configuration operations 2017-04-05 10:49:12 -07:00
Makefile nfp: move mutex code out of nfp_cppcore.c 2017-03-22 12:59:07 -07:00
nfp_asm.h nfp: add BPF to NFP code translator 2016-09-21 19:50:02 -04:00
nfp_bpf.h bitfield.h: add FIELD_FIT() helper 2017-02-10 15:52:24 -05:00
nfp_bpf_jit.c nfp: add support for offload of XDP programs 2016-11-04 14:56:16 -04:00
nfp_bpf_verifier.c nfp: add support for offload of XDP programs 2016-11-04 14:56:16 -04:00
nfp_main.c nfp: separate high level and low level NSP headers 2017-04-05 10:49:12 -07:00
nfp_main.h nfp: add port state refresh 2017-04-05 10:49:12 -07:00
nfp_net.h nfp: add port state refresh 2017-04-05 10:49:12 -07:00
nfp_net_common.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-04-06 08:24:51 -07:00
nfp_net_ctrl.h nfp: add support for .get_link_ksettings() 2017-04-05 10:49:12 -07:00
nfp_net_debugfs.c nfp: remove RX queue pointers 2017-03-22 12:59:09 -07:00
nfp_net_ethtool.c nfp: add support for .set_link_ksettings() 2017-04-05 10:49:12 -07:00
nfp_net_main.c nfp: don't dereference a null nn->eth_port to print a warning 2017-04-08 08:15:34 -07:00
nfp_net_offload.c nfp: separate data path information from the reset of adapter structure 2017-03-12 23:43:17 -07:00
nfp_netvf_main.c nfp: move control BAR pointer into data path structure 2017-03-12 23:43:17 -07:00