sctp: fix error return code in __sctp_connect()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 3 Apr 2013 03:02:28 +0000 (03:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Apr 2013 21:04:17 +0000 (17:04 -0400)
commit524fba6c14d2892bfa27c01577d544d6380291ba
tree058453c4d299208117ab8043b920b2a08889cb98
parentcfbe800b8b771afc7d5aa113e19f85ec933b7618
sctp: fix error return code in __sctp_connect()

Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c