From: Xin Long <lucien.xin@xxxxxxxxx> Date: Sat, 5 Dec 2015 15:15:17 +0800 > When a msg is sent, sctp will hold the chunks of this msg and then try > to enqueue them. But if the chunks are not enqueued in sctp_outq_tail() > because of the invalid state, sctp_cmd_interpreter() may still return > success to sctp_sendmsg() after calling sctp_outq_flush(), these chunks > will become orphans and will leak. > > So we fix them by moving sctp_chunk_hold() to sctp_outq_tail(), where we > are sure that the chunk is going to get queued. > > Signed-off-by: Xin Long <lucien.xin@xxxxxxxxx> > 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