Message ID | 20150812132756.GA8030@codemonkey.org.uk |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index 60021d0d9326..89b9cba73b3d 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c @@ -198,6 +198,14 @@ tb_found: goto success; } else { ret = 1; + + if (inet_csk(sk)->icsk_af_ops->bind_conflict == NULL) { + printk(KERN_INFO "bind_conflict == NULL\tops=%p state=%d err:%d\n", + inet_csk(sk)->icsk_af_ops, + sk->sk_state, sk->sk_err); + goto fail_unlock; + } + if (inet_csk(sk)->icsk_af_ops->bind_conflict(sk, tb, true)) { if (((sk->sk_reuse && sk->sk_state != TCP_LISTEN) || (tb->fastreuseport > 0 &&