summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_message.c
diff options
context:
space:
mode:
authorlucien <lucien.xin@gmail.com>2015-12-05 07:19:27 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-12-06 18:25:12 (GMT)
commit8b570dc9f7b634e853866ce40097c0342ac5bb81 (patch)
tree646708d19ab120712d0277c0b5840f30e0b55c3b /fs/xfs/xfs_message.c
parent69b5777f2e5779bb987d4a25a33401d5ac257c14 (diff)
downloadlinux-8b570dc9f7b634e853866ce40097c0342ac5bb81.tar.xz
sctp: only drop the reference on the datamsg after sending a msg
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 the chunks weren't queued, this is enough to get them freed. - if they were queued, they will get freed when they finally get out or discarded. Signed-off-by: Xin Long <lucien.xin@gmail.com> Marcelo Ricardo Leitner <marcelo.leitner@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_message.c')
0 files changed, 0 insertions, 0 deletions