aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorNeil Horman <nhorman@redhat.com>2005-04-28 14:59:49 -0400
committerDavid S. Miller <davem@davemloft.net>2005-04-28 14:59:49 -0400
commit5e6bc34f86e450ff14c4817902d66aa9c786bc06 (patch)
tree1a4db9bc742bcfd7368caf79b9c751f49b4c667b /net/sctp
parentb9b9e10f180fa63b55b93412edf0ab9648675646 (diff)
[SCTP] Fix bug in sctp_init() error handling code.
Signed-off-by: Neil Horman <nhorman@redhat.com> Signed-off-by: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index b9813cf3d91..23c85a236c4 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -1159,8 +1159,6 @@ SCTP_STATIC __init int sctp_init(void)
1159 status = 0; 1159 status = 0;
1160out: 1160out:
1161 return status; 1161 return status;
1162err_add_protocol:
1163 proto_unregister(&sctp_prot);
1164err_ctl_sock_init: 1162err_ctl_sock_init:
1165 sctp_v6_exit(); 1163 sctp_v6_exit();
1166err_v6_init: 1164err_v6_init:
@@ -1188,6 +1186,8 @@ err_bucket_cachep:
1188 inet_del_protocol(&sctp_protocol, IPPROTO_SCTP); 1186 inet_del_protocol(&sctp_protocol, IPPROTO_SCTP);
1189 inet_unregister_protosw(&sctp_seqpacket_protosw); 1187 inet_unregister_protosw(&sctp_seqpacket_protosw);
1190 inet_unregister_protosw(&sctp_stream_protosw); 1188 inet_unregister_protosw(&sctp_stream_protosw);
1189err_add_protocol:
1190 proto_unregister(&sctp_prot);
1191 goto out; 1191 goto out;
1192} 1192}
1193 1193