diff options
| author | 2008-06-25 12:36:55 +0200 | |
|---|---|---|
| committer | 2008-06-25 12:36:55 +0200 | |
| commit | f6477cc76c73833a56e97f1fafc36a7ca92927e5 (patch) | |
| tree | 9b4ca3d9fa63ea001d516834c8b2707094f3f711 /net/sctp/protocol.c | |
| parent | Merge branch 'linus' into x86/timers (diff) | |
| parent | Linux 2.6.26-rc8 (diff) | |
| download | linux-dev-f6477cc76c73833a56e97f1fafc36a7ca92927e5.tar.xz linux-dev-f6477cc76c73833a56e97f1fafc36a7ca92927e5.zip | |
Merge branch 'linus' into x86/timers
Diffstat (limited to 'net/sctp/protocol.c')
| -rw-r--r-- | net/sctp/protocol.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index b435a193c5df..9258dfe784ae 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -108,14 +108,23 @@ static __init int sctp_proc_init(void) } if (sctp_snmp_proc_init()) - goto out_nomem; + goto out_snmp_proc_init; if (sctp_eps_proc_init()) - goto out_nomem; + goto out_eps_proc_init; if (sctp_assocs_proc_init()) - goto out_nomem; + goto out_assocs_proc_init; return 0; +out_assocs_proc_init: + sctp_eps_proc_exit(); +out_eps_proc_init: + sctp_snmp_proc_exit(); +out_snmp_proc_init: + if (proc_net_sctp) { + proc_net_sctp = NULL; + remove_proc_entry("sctp", init_net.proc_net); + } out_nomem: return -ENOMEM; } |
