Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
[muen/linux.git] / net / core / sock.c
index 4f92c2910200e1adb4304c5e39a97a126a313faa..f704324d12194331a411f60b5e1d8446530e85a4 100644 (file)
@@ -1052,8 +1052,6 @@ set_rcvbuf:
                if (sk->sk_family == PF_INET || sk->sk_family == PF_INET6) {
                        if (sk->sk_protocol != IPPROTO_TCP)
                                ret = -ENOTSUPP;
-                       else if (sk->sk_state != TCP_CLOSE)
-                               ret = -EBUSY;
                } else if (sk->sk_family != PF_RDS) {
                        ret = -ENOTSUPP;
                }