diff options
Diffstat (limited to 'net/core/fib_rules.c')
| -rw-r--r-- | net/core/fib_rules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index 44706e81b2e0..e4fdc9dfb2c7 100644 --- a/net/core/fib_rules.c +++ b/net/core/fib_rules.c | |||
| @@ -175,9 +175,9 @@ void fib_rules_unregister(struct fib_rules_ops *ops) | |||
| 175 | 175 | ||
| 176 | spin_lock(&net->rules_mod_lock); | 176 | spin_lock(&net->rules_mod_lock); |
| 177 | list_del_rcu(&ops->list); | 177 | list_del_rcu(&ops->list); |
| 178 | fib_rules_cleanup_ops(ops); | ||
| 179 | spin_unlock(&net->rules_mod_lock); | 178 | spin_unlock(&net->rules_mod_lock); |
| 180 | 179 | ||
| 180 | fib_rules_cleanup_ops(ops); | ||
| 181 | call_rcu(&ops->rcu, fib_rules_put_rcu); | 181 | call_rcu(&ops->rcu, fib_rules_put_rcu); |
| 182 | } | 182 | } |
| 183 | EXPORT_SYMBOL_GPL(fib_rules_unregister); | 183 | EXPORT_SYMBOL_GPL(fib_rules_unregister); |
