aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/net')
-rw-r--r--include/net/sock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index 09255eae93e9..dc42b44c2aa1 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -1314,7 +1314,7 @@ void sock_net_set(struct sock *sk, struct net *net)
1314static inline void sk_change_net(struct sock *sk, struct net *net) 1314static inline void sk_change_net(struct sock *sk, struct net *net)
1315{ 1315{
1316 put_net(sock_net(sk)); 1316 put_net(sock_net(sk));
1317 sock_net_set(sk, net); 1317 sock_net_set(sk, hold_net(net));
1318} 1318}
1319 1319
1320extern void sock_enable_timestamp(struct sock *sk); 1320extern void sock_enable_timestamp(struct sock *sk);