diff options
author | Neil Horman <nhorman@redhat.com> | 2005-04-28 14:59:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-04-28 14:59:49 -0400 |
commit | 5e6bc34f86e450ff14c4817902d66aa9c786bc06 (patch) | |
tree | 1a4db9bc742bcfd7368caf79b9c751f49b4c667b /net/sctp | |
parent | b9b9e10f180fa63b55b93412edf0ab9648675646 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index b9813cf3d91c..23c85a236c41 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; |
1160 | out: | 1160 | out: |
1161 | return status; | 1161 | return status; |
1162 | err_add_protocol: | ||
1163 | proto_unregister(&sctp_prot); | ||
1164 | err_ctl_sock_init: | 1162 | err_ctl_sock_init: |
1165 | sctp_v6_exit(); | 1163 | sctp_v6_exit(); |
1166 | err_v6_init: | 1164 | err_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); |
1189 | err_add_protocol: | ||
1190 | proto_unregister(&sctp_prot); | ||
1191 | goto out; | 1191 | goto out; |
1192 | } | 1192 | } |
1193 | 1193 | ||