linux/drivers/net/ethernet/hisilicon
Colin Ian King c234af5875 net: hns: dereference ppe_cb->ppe_common_cb if it is non-null
ppe_cb->ppe_common_cb is being dereferenced before a null check is
being made on it.  If ppe_cb->ppe_common_cb is null then we end up
with a null pointer dereference when assigning dsaf_dev.  Fix this
by moving the initialisation of dsaf_dev once we know
ppe_cb->ppe_common_cb is OK to dereference.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-08-26 11:44:56 -07:00
..
hns net: hns: dereference ppe_cb->ppe_common_cb if it is non-null 2016-08-26 11:44:56 -07:00
hip04_eth.c hip04_eth: fix missing error handle for build_skb failed 2016-01-13 15:48:14 -05:00
hisi_femac.c net: hisilicon: Add Fast Ethernet MAC driver 2016-07-16 21:32:58 -07:00
hix5hd2_gmac.c net: ethernet: hix5hd2: use phy_ethtool_{get|set}_link_ksettings 2016-06-28 09:12:35 -04:00
hns_mdio.c net: hns: get reset registers from DT 2016-07-01 16:56:52 -04:00
Kconfig net: hisilicon: Add Fast Ethernet MAC driver 2016-07-16 21:32:58 -07:00
Makefile net: hisilicon: Add Fast Ethernet MAC driver 2016-07-16 21:32:58 -07:00