diff options
author | 2016-08-25 07:51:10 +0100 | |
---|---|---|
committer | 2016-08-26 11:44:56 -0700 | |
commit | c234af5875ffeab39d5a2c4230a477a35987a484 (patch) | |
tree | 71c260650893c3699eb475d81b5c7a9708ebd200 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 8139cp: Fix one possible deadloop in cp_rx_poll (diff) | |
download | wireguard-linux-c234af5875ffeab39d5a2c4230a477a35987a484.tar.xz wireguard-linux-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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions