diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/sock.h | 2 |
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) | |||
1314 | static inline void sk_change_net(struct sock *sk, struct net *net) | 1314 | static 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 | ||
1320 | extern void sock_enable_timestamp(struct sock *sk); | 1320 | extern void sock_enable_timestamp(struct sock *sk); |