Re: [PATCH net] sctp: only drop the reference on the datamsg after sending a msg

2015-12-06 Thread David Miller
From: Xin Long Date: Sat, 5 Dec 2015 15:19:27 +0800 > If the chunks are enqueued successfully but sctp_cmd_interpreter() > return err to sctp_sendmsg() (mainly because of no mem), the chunks will > get re-queued, but we are dropping the reference and freeing them. > > The fix is to just drop th

Re: [PATCH net] sctp: only drop the reference on the datamsg after sending a msg

2015-12-05 Thread Marcelo Ricardo Leitner
Em 05-12-2015 05:19, Xin Long escreveu: If the chunks are enqueued successfully but sctp_cmd_interpreter() return err to sctp_sendmsg() (mainly because of no mem), the chunks will get re-queued, but we are dropping the reference and freeing them. The fix is to just drop the reference on the data

[PATCH net] sctp: only drop the reference on the datamsg after sending a msg

2015-12-04 Thread Xin Long
If the chunks are enqueued successfully but sctp_cmd_interpreter() return err to sctp_sendmsg() (mainly because of no mem), the chunks will get re-queued, but we are dropping the reference and freeing them. The fix is to just drop the reference on the datamsg just as it had succeeded, as: - if th