diff options
author | Sven Eckelmann | 2017-11-29 10:50:42 +0100 |
---|---|---|
committer | Simon Wunderlich | 2017-12-01 12:37:58 +0100 |
commit | 198a62ddffa4a4ffaeb741f642b7b52f2d91ae9b (patch) | |
tree | 73261ddabaf836bf7f606ea6ea3e2be13ec0510f /net/ipv4/tcp_vegas.c | |
parent | batman-adv: Always initialize fragment header priority (diff) | |
download | kernel-qcow2-linux-198a62ddffa4a4ffaeb741f642b7b52f2d91ae9b.tar.gz kernel-qcow2-linux-198a62ddffa4a4ffaeb741f642b7b52f2d91ae9b.tar.xz kernel-qcow2-linux-198a62ddffa4a4ffaeb741f642b7b52f2d91ae9b.zip |
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 'net/ipv4/tcp_vegas.c')
0 files changed, 0 insertions, 0 deletions