diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-08-25 09:51:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-26 21:44:56 +0300 |
commit | c234af5875ffeab39d5a2c4230a477a35987a484 (patch) | |
tree | 71c260650893c3699eb475d81b5c7a9708ebd200 /drivers/net/team | |
parent | b628d611a2a53858263fc419dba552f32431dba4 (diff) | |
download | linux-c234af5875ffeab39d5a2c4230a477a35987a484.tar.xz |
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>
Diffstat (limited to 'drivers/net/team')
0 files changed, 0 insertions, 0 deletions