From b00ee5b768750081baff2cadad8b53fe7ac1880b Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Thu, 28 Apr 2005 11:59:49 -0700 Subject: [PATCH] --- yaml --- r: 537 b: refs/heads/master c: 5e6bc34f86e450ff14c4817902d66aa9c786bc06 h: refs/heads/master i: 535: 3c53a602a914114a35f1a65e16bfe865aa1ad503 v: v3 --- [refs] | 2 +- trunk/net/sctp/protocol.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 52eff15aa025..b14512ad31ea 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b9b9e10f180fa63b55b93412edf0ab9648675646 +refs/heads/master: 5e6bc34f86e450ff14c4817902d66aa9c786bc06 diff --git a/trunk/net/sctp/protocol.c b/trunk/net/sctp/protocol.c index b9813cf3d91c..23c85a236c41 100644 --- a/trunk/net/sctp/protocol.c +++ b/trunk/net/sctp/protocol.c @@ -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: @@ -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; }