Home
last modified time | relevance | path

Searched hist:c234af5875ffeab39d5a2c4230a477a35987a484 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_ppe.cdiff c234af5875ffeab39d5a2c4230a477a35987a484 Thu Aug 25 01:51:10 CDT 2016 Colin Ian King <colin.king@canonical.com> 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>