aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/routing.c3
-rw-r--r--net/batman-adv/unicast.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c
index bb1c3ec7e3ff..8c403ce785d0 100644
--- a/net/batman-adv/routing.c
+++ b/net/batman-adv/routing.c
@@ -1240,6 +1240,9 @@ struct neigh_node *find_router(struct bat_priv *bat_priv,
1240 router = find_ifalter_router(primary_orig_node, recv_if); 1240 router = find_ifalter_router(primary_orig_node, recv_if);
1241 1241
1242return_router: 1242return_router:
1243 if (router && router->if_incoming->if_status != IF_ACTIVE)
1244 goto err_unlock;
1245
1243 rcu_read_unlock(); 1246 rcu_read_unlock();
1244 return router; 1247 return router;
1245err_unlock: 1248err_unlock:
diff --git a/net/batman-adv/unicast.c b/net/batman-adv/unicast.c
index 19c3daf34ac6..bab6076c4334 100644
--- a/net/batman-adv/unicast.c
+++ b/net/batman-adv/unicast.c
@@ -314,9 +314,6 @@ find_router:
314 if (!neigh_node) 314 if (!neigh_node)
315 goto out; 315 goto out;
316 316
317 if (neigh_node->if_incoming->if_status != IF_ACTIVE)
318 goto out;
319
320 if (my_skb_head_push(skb, sizeof(struct unicast_packet)) < 0) 317 if (my_skb_head_push(skb, sizeof(struct unicast_packet)) < 0)
321 goto out; 318 goto out;
322 319