From: Xin Long <lucien....@gmail.com> 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....@gmail.com> > Signed-off-by: Marcelo Ricardo Leitner <marcelo.leit...@gmail.com> Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html