Skip to contentSkip to conversation

batman-adv: fix crash on mesh cleanup in bridge loop avoidance code

PATCH In review Marek Lindner 2 participants 3 messages Oct 24, 2010 – Oct 25, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batman-adv: fix crash on mesh cleanup in bridge loop avoidance code

---
 batman-adv/soft-interface.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
batman-adv/soft-interface.c +0 -1
index a13276b..5ae26e8 100644
@@ -114,7 +114,6 @@ void softif_neigh_purge(struct bat_priv *bat_priv)
 		hlist_del_rcu(&softif_neigh->list);
 
 		if (bat_priv->softif_neigh == softif_neigh) {
-			bat_priv->softif_neigh = NULL;
 			bat_dbg(DBG_ROUTES, bat_priv,
 				 "Current mesh exit point '%pM' vanished "
 				 "(vid: %d).\n",
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Marek Lindner
---
 batman-adv/soft-interface.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
batman-adv/soft-interface.c +0 -0
index a13276b..5ae26e8 100644

batman-adv/soft-interface.c void softif_neigh_purge(struct bat_priv *bat_priv) · line 119

Quoted 7 lines
batman-adv/soft-interface.c +0 -1
@@ -114,7 +114,6 @@ void softif_neigh_purge(struct bat_priv *bat_priv)
 		hlist_del_rcu(&softif_neigh->list);
 
 		if (bat_priv->softif_neigh == softif_neigh) {
-			bat_priv->softif_neigh = NULL;
 			bat_dbg(DBG_ROUTES, bat_priv,
 				 "Current mesh exit point '%pM' vanished "
 				 "(vid: %d).\n",