OSDN Git Service

sctp: sctp_sock_migrate() returns error if sctp_bind_addr_dup() fails
authorXin Long <lucien.xin@gmail.com>
Sun, 3 Mar 2019 09:54:53 +0000 (17:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Mar 2019 19:42:49 +0000 (11:42 -0800)
commit89664c623617b1d34447a927ac7871ddf3db29d3
tree6689dacdd30c71a5e0e88dc0f9eee949f39e8e8b
parentad6c9986bcb627c7c22b8f9e9a934becc27df87c
sctp: sctp_sock_migrate() returns error if sctp_bind_addr_dup() fails

It should fail to create the new sk if sctp_bind_addr_dup() fails
when accepting or peeloff an association.

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