diff options
Diffstat (limited to 'net/dccp/ccid.c')
-rw-r--r-- | net/dccp/ccid.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/dccp/ccid.c b/net/dccp/ccid.c index 19b214ad5e06..f3e9ba1cfd01 100644 --- a/net/dccp/ccid.c +++ b/net/dccp/ccid.c | |||
@@ -12,6 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "ccid.h" | 14 | #include "ccid.h" |
15 | #include "ccids/lib/tfrc.h" | ||
15 | 16 | ||
16 | static struct ccid_operations *ccids[] = { | 17 | static struct ccid_operations *ccids[] = { |
17 | &ccid2_ops, | 18 | &ccid2_ops, |
@@ -199,7 +200,10 @@ void ccid_hc_tx_delete(struct ccid *ccid, struct sock *sk) | |||
199 | 200 | ||
200 | int __init ccid_initialize_builtins(void) | 201 | int __init ccid_initialize_builtins(void) |
201 | { | 202 | { |
202 | int i, err; | 203 | int i, err = tfrc_lib_init(); |
204 | |||
205 | if (err) | ||
206 | return err; | ||
203 | 207 | ||
204 | for (i = 0; i < ARRAY_SIZE(ccids); i++) { | 208 | for (i = 0; i < ARRAY_SIZE(ccids); i++) { |
205 | err = ccid_activate(ccids[i]); | 209 | err = ccid_activate(ccids[i]); |
@@ -211,6 +215,7 @@ int __init ccid_initialize_builtins(void) | |||
211 | unwind_registrations: | 215 | unwind_registrations: |
212 | while(--i >= 0) | 216 | while(--i >= 0) |
213 | ccid_deactivate(ccids[i]); | 217 | ccid_deactivate(ccids[i]); |
218 | tfrc_lib_exit(); | ||
214 | return err; | 219 | return err; |
215 | } | 220 | } |
216 | 221 | ||
@@ -220,4 +225,5 @@ void ccid_cleanup_builtins(void) | |||
220 | 225 | ||
221 | for (i = 0; i < ARRAY_SIZE(ccids); i++) | 226 | for (i = 0; i < ARRAY_SIZE(ccids); i++) |
222 | ccid_deactivate(ccids[i]); | 227 | ccid_deactivate(ccids[i]); |
228 | tfrc_lib_exit(); | ||
223 | } | 229 | } |