DORMANTno replies

[PATCH 2.6 4/6][SCTP] Fix bug in sctp_init() error handling code.

From: Sridhar Samudrala <hidden>
Date: 2005-04-26 18:32:43

[SCTP] Fix bug in sctp_init() error handling code.

Signed-off-by: Neil Horman <redacted>
Signed-off-by: Sridhar Samudrala <redacted>
-------------------------------------------------------------------
diff -Nru a/net/sctp/protocol.c b/net/sctp/protocol.c
--- a/net/sctp/protocol.c	2005-04-21 16:23:29 -07:00
+++ b/net/sctp/protocol.c	2005-04-21 16:23:29 -07:00
@@ -1159,8 +1159,6 @@
 	status = 0;
 out:
 	return status;
-err_add_protocol:
-	proto_unregister(&sctp_prot);
 err_ctl_sock_init:
 	sctp_v6_exit();
 err_v6_init:
@@ -1188,6 +1186,8 @@
 	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;
 }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help