diff options
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 48e4d5c38f85..8c85791fc196 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -1697,6 +1697,7 @@ static inline void sock_orphan(struct sock *sk) | |||
1697 | 1697 | ||
1698 | static inline void sock_graft(struct sock *sk, struct socket *parent) | 1698 | static inline void sock_graft(struct sock *sk, struct socket *parent) |
1699 | { | 1699 | { |
1700 | WARN_ON(parent->sk); | ||
1700 | write_lock_bh(&sk->sk_callback_lock); | 1701 | write_lock_bh(&sk->sk_callback_lock); |
1701 | sk->sk_wq = parent->wq; | 1702 | sk->sk_wq = parent->wq; |
1702 | parent->sk = sk; | 1703 | parent->sk = sk; |