mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 10:26:09 +00:00
ipmr,ip6mr: call ip6mr_free_table() on failure path
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7a1e890e21
commit
f243e5a785
@ -268,7 +268,7 @@ static int __net_init ipmr_rules_init(struct net *net)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err2:
|
err2:
|
||||||
kfree(mrt);
|
ipmr_free_table(mrt);
|
||||||
err1:
|
err1:
|
||||||
fib_rules_unregister(ops);
|
fib_rules_unregister(ops);
|
||||||
return err;
|
return err;
|
||||||
|
@ -252,7 +252,7 @@ static int __net_init ip6mr_rules_init(struct net *net)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err2:
|
err2:
|
||||||
kfree(mrt);
|
ip6mr_free_table(mrt);
|
||||||
err1:
|
err1:
|
||||||
fib_rules_unregister(ops);
|
fib_rules_unregister(ops);
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user