From: Marcelo Ricardo Leitner <marcelo.leitner@xxxxxxxxx> Date: Fri, 15 Jul 2016 16:38:19 -0300 > Commit d46e416c11c8 missed to update some other places which checked for > the socket being TCP-style AND Established state, as Closing state has > some overlapping with the previous understanding of Established. > > Without this fix, one of the effects is that some already queued rx > messages may not be readable anymore depending on how the association > teared down, and sending may also not be possible if peer initiated the > shutdown. > > Also merge two if() blocks into one condition on sctp_sendmsg(). > > Cc: Xin Long <lucien.xin@xxxxxxxxx> > Fixes: d46e416c11c8 ("sctp: sctp should change socket state when shutdown is received") > Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@xxxxxxxxx> Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-sctp" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html