summaryrefslogtreecommitdiff
path: root/drivers/net/sungem_phy.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-03-25 14:26:39 +0000
committerDavid S. Miller <davem@davemloft.net>2017-03-27 16:00:58 -0700
commiteb996edb03a665d038de7bc318182412e44c52f9 (patch)
treec763f77b713333ac5d9a6783a739f729116ecee4 /drivers/net/sungem_phy.c
parent86573f615215a06f85ec33e5d3e951e9158e36ec (diff)
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>
Diffstat (limited to 'drivers/net/sungem_phy.c')
0 files changed, 0 insertions, 0 deletions