linux_dsm_epyc7002/drivers/net/hyperv
Colin Ian King eb996edb03 netvsc: fix dereference before null check errors
ndev is being checked to see if it is a null pointer however before
the null check ndev is being dereferenced; hence there is a potential
null pointer dereference bug that needs fixing. Fix this by only
dereferencing ndev after the null check.

Detected by CoverityScan, CID#1420760, CID#140761 ("Dereference
before null check")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-27 16:00:58 -07:00
..
hyperv_net.h netvsc: use refcount_t for keeping track of sub channels 2017-03-22 19:38:56 -07:00
Kconfig
Makefile
netvsc_drv.c netvsc: fix dereference before null check errors 2017-03-27 16:00:58 -07:00
netvsc.c netvsc: eliminate unnecessary skb == NULL checks 2017-03-22 19:38:57 -07:00
rndis_filter.c netvsc: Fix a bug in sub-channel handling 2017-03-25 20:15:56 -07:00