summaryrefslogtreecommitdiffstats
path: root/drivers/net/team
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-08-25 07:51:10 +0100
committerDavid S. Miller <davem@davemloft.net>2016-08-26 11:44:56 -0700
commitc234af5875ffeab39d5a2c4230a477a35987a484 (patch)
tree71c260650893c3699eb475d81b5c7a9708ebd200 /drivers/net/team
parentb628d611a2a53858263fc419dba552f32431dba4 (diff)
downloadlinux-stable-c234af5875ffeab39d5a2c4230a477a35987a484.tar.gz
linux-stable-c234af5875ffeab39d5a2c4230a477a35987a484.tar.bz2
linux-stable-c234af5875ffeab39d5a2c4230a477a35987a484.zip
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