linux/drivers/net/ethernet/netronome
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
..
nfp nfp: don't dereference a null nn->eth_port to print a warning 2017-04-08 08:15:34 -07:00
Kconfig nfp: rename the driver and add new main file 2017-02-10 15:52:24 -05:00
Makefile nfp: rename the driver and add new main file 2017-02-10 15:52:24 -05:00