summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorWANG Cong <xiyou.wangcong@gmail.com>2015-03-25 14:45:03 -0700
committerDavid S. Miller <davem@davemloft.net>2015-03-29 12:13:54 -0700
commitf243e5a7859a24d10975afb9a1708cac624ba6f1 (patch)
tree0506d5724f8a9ded3a15c857ab33483d41bc6dca /net/ipv6
parent7a1e890e2168e33fb62d84528e996b8b4b478fea (diff)
downloadlinux-f243e5a7859a24d10975afb9a1708cac624ba6f1.tar.gz
linux-f243e5a7859a24d10975afb9a1708cac624ba6f1.tar.bz2
linux-f243e5a7859a24d10975afb9a1708cac624ba6f1.zip
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>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/ip6mr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 34b682617f50..52028f449a89 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -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;