]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: factor out sctp_sendmsg_to_asoc from sctp_sendmsg
authorXin Long <lucien.xin@gmail.com>
Thu, 1 Mar 2018 15:05:10 +0000 (23:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Mar 2018 18:00:56 +0000 (13:00 -0500)
commited0d767ddb3fec2566122b5e157475fb48dfe7c0
tree465282d87c6301382b34b001719d4e45f9c6389a
parent24f99845aeffaf7c3a2dae462e8f3d81d1affa41
sctp: factor out sctp_sendmsg_to_asoc from sctp_sendmsg

This patch is to move the codes for checking and sending on
one asoc after this asoc has been found or created into
sctp_sendmsg_to_asoc.

Note that 'err != -ESRCH' check is for the case that asoc is
freed when waiting for tx buffer in sctp_sendmsg_to_asoc.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c