Skip to content

Commit

Permalink
[DECNET]: Fix RCU race condition in dn_neigh_construct().
Browse files Browse the repository at this point in the history
Signed-off-by: Paul E. McKenney <paulmck@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Paul E. McKenney authored and David S. Miller committed Aug 17, 2005
1 parent bfd272b commit 1f07247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/decnet/dn_neigh.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ static int dn_neigh_construct(struct neighbour *neigh)

__neigh_parms_put(neigh->parms);
neigh->parms = neigh_parms_clone(parms);
rcu_read_unlock();

if (dn_db->use_long)
neigh->ops = &dn_long_ops;
else
neigh->ops = &dn_short_ops;
rcu_read_unlock();

if (dn->flags & DN_NDFLAG_P3)
neigh->ops = &dn_phase3_ops;
Expand Down

0 comments on commit 1f07247

Please sign in to comment.