mirror of https://gitee.com/openkylin/linux.git
1f1120a542
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:
|
||
---|---|---|
.. | ||
nfpcore | ||
Makefile | ||
nfp_asm.h | ||
nfp_bpf.h | ||
nfp_bpf_jit.c | ||
nfp_bpf_verifier.c | ||
nfp_main.c | ||
nfp_main.h | ||
nfp_net.h | ||
nfp_net_common.c | ||
nfp_net_ctrl.h | ||
nfp_net_debugfs.c | ||
nfp_net_ethtool.c | ||
nfp_net_main.c | ||
nfp_net_offload.c | ||
nfp_netvf_main.c |