Skip to content
Snippets Groups Projects
Commit 1f07247d authored by Paul E. McKenney's avatar Paul E. McKenney Committed by David S. Miller
Browse files

[DECNET]: Fix RCU race condition in dn_neigh_construct().


Signed-off-by: default avatarPaul E. McKenney <paulmck@us.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bfd272b1
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment