Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255308
b: refs/heads/master
c: 728cbc6
h: refs/heads/master
v: v3
  • Loading branch information
Sven Eckelmann committed May 30, 2011
1 parent bf1dcca commit ff4d07a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 704509b8d44886cebfbaff1a9813c35dfa986954
refs/heads/master: 728cbc6ac1eef89660875c70a602c1a0ba8df4ff
2 changes: 1 addition & 1 deletion trunk/net/batman-adv/gateway_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static void gw_select(struct bat_priv *bat_priv, struct gw_node *new_gw_node)
if (new_gw_node && !atomic_inc_not_zero(&new_gw_node->refcount))
new_gw_node = NULL;

curr_gw_node = bat_priv->curr_gw;
curr_gw_node = rcu_dereference_protected(bat_priv->curr_gw, 1);
rcu_assign_pointer(bat_priv->curr_gw, new_gw_node);

if (curr_gw_node)
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/batman-adv/hard-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static void primary_if_select(struct bat_priv *bat_priv,
if (new_hard_iface && !atomic_inc_not_zero(&new_hard_iface->refcount))
new_hard_iface = NULL;

curr_hard_iface = bat_priv->primary_if;
curr_hard_iface = rcu_dereference_protected(bat_priv->primary_if, 1);
rcu_assign_pointer(bat_priv->primary_if, new_hard_iface);

if (curr_hard_iface)
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/batman-adv/soft-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ static void softif_neigh_vid_select(struct bat_priv *bat_priv,
if (new_neigh && !atomic_inc_not_zero(&new_neigh->refcount))
new_neigh = NULL;

curr_neigh = softif_neigh_vid->softif_neigh;
curr_neigh = rcu_dereference_protected(softif_neigh_vid->softif_neigh,
1);
rcu_assign_pointer(softif_neigh_vid->softif_neigh, new_neigh);

if ((curr_neigh) && (!new_neigh))
Expand Down

0 comments on commit ff4d07a

Please sign in to comment.