aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 1ec03db7dcd9..e54a410ca701 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -1575,7 +1575,7 @@ void tcp_destroy_sock(struct sock *sk)
1575 BUG_TRAP(sk_unhashed(sk)); 1575 BUG_TRAP(sk_unhashed(sk));
1576 1576
1577 /* If it has not 0 inet_sk(sk)->num, it must be bound */ 1577 /* If it has not 0 inet_sk(sk)->num, it must be bound */
1578 BUG_TRAP(!inet_sk(sk)->num || tcp_sk(sk)->bind_hash); 1578 BUG_TRAP(!inet_sk(sk)->num || inet_sk(sk)->bind_hash);
1579 1579
1580 sk->sk_prot->destroy(sk); 1580 sk->sk_prot->destroy(sk);
1581 1581
@@ -1802,7 +1802,7 @@ int tcp_disconnect(struct sock *sk, int flags)
1802 tcp_sack_reset(&tp->rx_opt); 1802 tcp_sack_reset(&tp->rx_opt);
1803 __sk_dst_reset(sk); 1803 __sk_dst_reset(sk);
1804 1804
1805 BUG_TRAP(!inet->num || tp->bind_hash); 1805 BUG_TRAP(!inet->num || inet->bind_hash);
1806 1806
1807 sk->sk_error_report(sk); 1807 sk->sk_error_report(sk);
1808 return err; 1808 return err;