tree 2d9066246fe198746762a609ac147a42fae0d4a6
parent bfd272b1ca1164382eabaa9986aad822adb91eb2
author Paul E. McKenney <[EMAIL PROTECTED]> Thu, 18 Aug 2005 02:05:27 -0700
committer David S. Miller <[EMAIL PROTECTED]> Thu, 18 Aug 2005 02:05:27 -0700

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

Signed-off-by: Paul E. McKenney <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>


 net/decnet/dn_neigh.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/decnet/dn_neigh.c b/net/decnet/dn_neigh.c
--- a/net/decnet/dn_neigh.c
+++ b/net/decnet/dn_neigh.c
@@ -148,12 +148,12 @@ static int dn_neigh_construct(struct nei
 
        __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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to