summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSven Eckelmann <sven.eckelmann@openmesh.com>2017-11-29 12:50:42 +0300
committerSimon Wunderlich <sw@simonwunderlich.de>2017-12-01 14:37:58 +0300
commit198a62ddffa4a4ffaeb741f642b7b52f2d91ae9b (patch)
tree73261ddabaf836bf7f606ea6ea3e2be13ec0510f /tools/perf/scripts/python/export-to-sqlite.py
parentfe77d8257c4d838c5976557ddb87bd789f312412 (diff)
downloadlinux-198a62ddffa4a4ffaeb741f642b7b52f2d91ae9b.tar.xz
batman-adv: Fix check of retrieved orig_gw in batadv_v_gw_is_eligible
The batadv_v_gw_is_eligible function already assumes that orig_node is not NULL. But batadv_gw_node_get may have failed to find the originator. It must therefore be checked whether the batadv_gw_node_get failed and not whether orig_node is NULL to detect this error. Fixes: 50164d8f500f ("batman-adv: B.A.T.M.A.N. V - implement GW selection logic") Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com> Acked-by: Antonio Quartulli <a@unstable.cc> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions