| To: | davem@xxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 2.6 4/6][SCTP] Fix bug in sctp_init() error handling code. |
| From: | Sridhar Samudrala <sri@xxxxxxxxxx> |
| Date: | Tue, 26 Apr 2005 11:32:43 -0700 (PDT) |
| Cc: | netdev@xxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
[SCTP] Fix bug in sctp_init() error handling code.
Signed-off-by: Neil Horman <nhorman@xxxxxxxxxx>
Signed-off-by: Sridhar Samudrala <sri@xxxxxxxxxx>
-------------------------------------------------------------------
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;
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [1/1] connector/CBUS: new messaging subsystem. Revision number next., Dmitry Torokhov |
|---|---|
| Next by Date: | Re: Re-routing packets via netfilter (ip_rt_bug), Patrick McHardy |
| Previous by Thread: | [PATCH] net: Disable queueing when carrier is lost, Tommy Christensen |
| Next by Thread: | [PATCH 2.6 2/6][SCTP] Implement Sec 2.41 of SCTP Implementers guide., Sridhar Samudrala |
| Indexes: | [Date] [Thread] [Top] [All Lists] |