From: Vlad Yasevich Date: Thu, 30 Aug 2007 18:03:58 +0000 (-0400) Subject: SCTP: Correctly disable listening when backlog is 0. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=498d63071ef378e201979e441aefcc6565702ca7;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git SCTP: Correctly disable listening when backlog is 0. Signed-off-by: Vlad Yasevich --- diff --git a/net/sctp/socket.c b/net/sctp/socket.c index de792122672..33354602ae8 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -5203,6 +5203,7 @@ SCTP_STATIC int sctp_seqpacket_listen(struct sock *sk, int backlog) sctp_unhash_endpoint(ep); sk->sk_state = SCTP_SS_CLOSED; + return 0; } /* Return if we are already listening. */ @@ -5250,6 +5251,7 @@ SCTP_STATIC int sctp_stream_listen(struct sock *sk, int backlog) sctp_unhash_endpoint(ep); sk->sk_state = SCTP_SS_CLOSED; + return 0; } if (sctp_sstate(sk, LISTENING))