Message ID | 1403041506-13646-5-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index d9ed737..3e6bd41 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -6591,6 +6591,12 @@ static void sctp_wake_up_waiters(struct sock *sk, if (asoc->ep->sndbuf_policy) return __sctp_write_space(asoc); + /* If association goes down and is just flushing its + * outq, then just normally notify others. + */ + if (asoc->base.dead) + return sctp_write_space(sk); + /* Accounting for the sndbuf space is per socket, so we * need to wake up others, try to be fair and in case of * other associations, let them have a go first instead