aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ulp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_ulp.c')
-rw-r--r--net/ipv4/tcp_ulp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ulp.c b/net/ipv4/tcp_ulp.c
index a9162aa11af9..95df7f7f6328 100644
--- a/net/ipv4/tcp_ulp.c
+++ b/net/ipv4/tcp_ulp.c
@@ -99,8 +99,10 @@ void tcp_cleanup_ulp(struct sock *sk)
99{ 99{
100 struct inet_connection_sock *icsk = inet_csk(sk); 100 struct inet_connection_sock *icsk = inet_csk(sk);
101 101
102 sock_owned_by_me(sk); 102 /* No sock_owned_by_me() check here as at the time the
103 103 * stack calls this function, the socket is dead and
104 * about to be destroyed.
105 */
104 if (!icsk->icsk_ulp_ops) 106 if (!icsk->icsk_ulp_ops)
105 return; 107 return;
106 108