提交 f243e5a7 编写于 作者: W WANG Cong 提交者: David S. Miller

ipmr,ip6mr: call ip6mr_free_table() on failure path

Signed-off-by: NCong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7a1e890e
......@@ -268,7 +268,7 @@ static int __net_init ipmr_rules_init(struct net *net)
return 0;
err2:
kfree(mrt);
ipmr_free_table(mrt);
err1:
fib_rules_unregister(ops);
return err;
......
......@@ -252,7 +252,7 @@ static int __net_init ip6mr_rules_init(struct net *net)
return 0;
err2:
kfree(mrt);
ip6mr_free_table(mrt);
err1:
fib_rules_unregister(ops);
return err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册