aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_rules.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/fib_rules.c')
-rw-r--r--net/ipv4/fib_rules.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/fib_rules.c b/net/ipv4/fib_rules.c
index 8d0ebe7f360d..3b7affd5cb3b 100644
--- a/net/ipv4/fib_rules.c
+++ b/net/ipv4/fib_rules.c
@@ -317,7 +317,7 @@ int __net_init fib4_rules_init(struct net *net)
317 INIT_LIST_HEAD(&ops->rules_list); 317 INIT_LIST_HEAD(&ops->rules_list);
318 ops->fro_net = net; 318 ops->fro_net = net;
319 319
320 fib_rules_register(net, ops); 320 fib_rules_register(ops);
321 321
322 err = fib_default_rules_init(ops); 322 err = fib_default_rules_init(ops);
323 if (err < 0) 323 if (err < 0)
@@ -327,13 +327,13 @@ int __net_init fib4_rules_init(struct net *net)
327 327
328fail: 328fail:
329 /* also cleans all rules already added */ 329 /* also cleans all rules already added */
330 fib_rules_unregister(net, ops); 330 fib_rules_unregister(ops);
331 kfree(ops); 331 kfree(ops);
332 return err; 332 return err;
333} 333}
334 334
335void __net_exit fib4_rules_exit(struct net *net) 335void __net_exit fib4_rules_exit(struct net *net)
336{ 336{
337 fib_rules_unregister(net, net->ipv4.rules_ops); 337 fib_rules_unregister(net->ipv4.rules_ops);
338 kfree(net->ipv4.rules_ops); 338 kfree(net->ipv4.rules_ops);
339} 339}