diff options
Diffstat (limited to 'net/core/fib_rules.c')
-rw-r--r-- | net/core/fib_rules.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index 0af0538343d..fcbf41c0a5d 100644 --- a/net/core/fib_rules.c +++ b/net/core/fib_rules.c | |||
@@ -102,7 +102,7 @@ errout: | |||
102 | 102 | ||
103 | EXPORT_SYMBOL_GPL(fib_rules_register); | 103 | EXPORT_SYMBOL_GPL(fib_rules_register); |
104 | 104 | ||
105 | static void cleanup_ops(struct fib_rules_ops *ops) | 105 | void fib_rules_cleanup_ops(struct fib_rules_ops *ops) |
106 | { | 106 | { |
107 | struct fib_rule *rule, *tmp; | 107 | struct fib_rule *rule, *tmp; |
108 | 108 | ||
@@ -111,6 +111,7 @@ static void cleanup_ops(struct fib_rules_ops *ops) | |||
111 | fib_rule_put(rule); | 111 | fib_rule_put(rule); |
112 | } | 112 | } |
113 | } | 113 | } |
114 | EXPORT_SYMBOL_GPL(fib_rules_cleanup_ops); | ||
114 | 115 | ||
115 | int fib_rules_unregister(struct fib_rules_ops *ops) | 116 | int fib_rules_unregister(struct fib_rules_ops *ops) |
116 | { | 117 | { |
@@ -121,7 +122,7 @@ int fib_rules_unregister(struct fib_rules_ops *ops) | |||
121 | list_for_each_entry(o, &rules_ops, list) { | 122 | list_for_each_entry(o, &rules_ops, list) { |
122 | if (o == ops) { | 123 | if (o == ops) { |
123 | list_del_rcu(&o->list); | 124 | list_del_rcu(&o->list); |
124 | cleanup_ops(ops); | 125 | fib_rules_cleanup_ops(ops); |
125 | goto out; | 126 | goto out; |
126 | } | 127 | } |
127 | } | 128 | } |