aboutsummaryrefslogtreecommitdiffstats
path: root/net/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/socket.c')
-rw-r--r--net/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c
index e56162cd65b0..28a96af484b4 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -2492,7 +2492,7 @@ int sock_register(const struct net_proto_family *ops)
2492 lockdep_is_held(&net_family_lock))) 2492 lockdep_is_held(&net_family_lock)))
2493 err = -EEXIST; 2493 err = -EEXIST;
2494 else { 2494 else {
2495 RCU_INIT_POINTER(net_families[ops->family], ops); 2495 rcu_assign_pointer(net_families[ops->family], ops);
2496 err = 0; 2496 err = 0;
2497 } 2497 }
2498 spin_unlock(&net_family_lock); 2498 spin_unlock(&net_family_lock);