aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/protocol.c')
-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 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;
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