linux_dsm_epyc7002/drivers/net/ethernet/hisilicon
Colin Ian King 075cfdd659 net: hns3: fix null pointer dereference before null check
pointer ndev is being dereferenced with the call to netif_running
before it is being null checked.  Re-order the code to only dereference
ndev after it has been null checked.

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

Fixes: 9df8f79a4d ("net: hns3: Add DCB support when interacting with network stack")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-01 04:12:45 +01:00
..
hns net: hns: Fix for __udivdi3 compiler error 2017-08-04 11:06:59 -07:00
hns3 net: hns3: fix null pointer dereference before null check 2017-10-01 04:12:45 +01:00
hip04_eth.c net: hip04: Omit private ndo_get_stats function 2017-02-14 15:03:21 -05:00
hisi_femac.c drivers: net: generalize napi_complete_done() 2017-01-30 15:10:42 -05:00
hix5hd2_gmac.c drivers: net: generalize napi_complete_done() 2017-01-30 15:10:42 -05:00
hns_mdio.c net: hns: Fix a wrong op phy C45 code 2017-07-08 11:05:21 +01:00
Kconfig net: hns3: Add hclge_dcb module for the support of DCB feature 2017-09-28 10:35:12 -07:00
Makefile net: hns3: Add HNS3 driver to kernel build framework & MAINTAINERS 2017-08-03 15:08:18 -07:00