diff options
author | lucien <lucien.xin@gmail.com> | 2015-12-05 07:15:17 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-06 18:25:12 (GMT) |
commit | 69b5777f2e5779bb987d4a25a33401d5ac257c14 (patch) | |
tree | 1333f49fe1b4d26f42c0d398a8f548314b81b1b8 /fs/xfs/xfs_log_recover.c | |
parent | ed7d42e24effbd3681e909711a7a2119a85e9217 (diff) | |
download | linux-69b5777f2e5779bb987d4a25a33401d5ac257c14.tar.xz |
sctp: hold the chunks only after the chunk is enqueued in outq
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@gmail.com>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
0 files changed, 0 insertions, 0 deletions