diff options
Diffstat (limited to 'net/ipv4/inet_connection_sock.c')
-rw-r--r-- | net/ipv4/inet_connection_sock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index df8e72f07478..9bc6a187bdce 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c | |||
@@ -172,7 +172,8 @@ tb_found: | |||
172 | } else { | 172 | } else { |
173 | ret = 1; | 173 | ret = 1; |
174 | if (inet_csk(sk)->icsk_af_ops->bind_conflict(sk, tb)) { | 174 | if (inet_csk(sk)->icsk_af_ops->bind_conflict(sk, tb)) { |
175 | if (sk->sk_reuse && sk->sk_state != TCP_LISTEN && --attempts >= 0) { | 175 | if (sk->sk_reuse && sk->sk_state != TCP_LISTEN && |
176 | smallest_size != -1 && --attempts >= 0) { | ||
176 | spin_unlock(&head->lock); | 177 | spin_unlock(&head->lock); |
177 | goto again; | 178 | goto again; |
178 | } | 179 | } |