Skip to content

Commit

Permalink
[SCTP] Fix bug in sctp_init() error handling code.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Neil Horman authored and David S. Miller committed Apr 28, 2005
1 parent b9b9e10 commit 5e6bc34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/sctp/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1159,8 +1159,6 @@ SCTP_STATIC __init int sctp_init(void)
status = 0;
out:
return status;
err_add_protocol:
proto_unregister(&sctp_prot);
err_ctl_sock_init:
sctp_v6_exit();
err_v6_init:
Expand Down Expand Up @@ -1188,6 +1186,8 @@ SCTP_STATIC __init int sctp_init(void)
inet_del_protocol(&sctp_protocol, IPPROTO_SCTP);
inet_unregister_protosw(&sctp_seqpacket_protosw);
inet_unregister_protosw(&sctp_stream_protosw);
err_add_protocol:
proto_unregister(&sctp_prot);
goto out;
}

Expand Down

0 comments on commit 5e6bc34

Please sign in to comment.