diff options
author | Sven Eckelmann <sven@narfation.org> | 2016-05-06 11:43:38 +0200 |
---|---|---|
committer | Antonio Quartulli <a@unstable.cc> | 2016-05-18 05:49:39 +0200 |
commit | a45e932a3c58eac11a7458c6888910e23f615077 (patch) | |
tree | f397605a50fac1cb444e9f3f7083defbbcfbc18d /net/batman-adv/packet.h | |
parent | batman-adv: fix skb deref after free (diff) | |
download | linux-a45e932a3c58eac11a7458c6888910e23f615077.tar.xz linux-a45e932a3c58eac11a7458c6888910e23f615077.zip |
batman-adv: Avoid nullptr derefence in batadv_v_neigh_is_sob
batadv_neigh_ifinfo_get can return NULL when it cannot find (even when only
temporarily) anymore the neigh_ifinfo in the list neigh->ifinfo_list. This
has to be checked to avoid kernel Oopses when the ifinfo is dereferenced.
This a situation which isn't expected but is already handled by functions
like batadv_v_neigh_cmp. The same kind of warning is therefore used before
the function returns without dereferencing the pointers.
Fixes: 9786906022eb ("batman-adv: B.A.T.M.A.N. V - implement neighbor comparison API calls")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Diffstat (limited to 'net/batman-adv/packet.h')
0 files changed, 0 insertions, 0 deletions