[Devel] [ignore] check if attached patches are cut
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Nov 24 00:20:54 PST 2015
Test email, please ignore.
--
Best regards,
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
-------------- next part --------------
From: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
Date: Mon, 23 Nov 2015 20:12:02 +0400
Message-ID: <20151123161159.14188.57241.stgit at localhost.localdomain>
Subject: [Devel] [PATCH rh7] ipmr, ip6mr: call ip6mr_free_table() on failure path
From: WANG Cong <xiyou.wangcong at gmail.com>
Signed-off-by: Cong Wang <xiyou.wangcong at gmail.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
Signed-off-by: Stanislav Kinsburskiy <skinsbursky at odin.com>
---
net/ipv4/ipmr.c | 2 +-
net/ipv6/ip6mr.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index 4234b01..ce25a5c 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -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;
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 9f44ebc..1997df7 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;
_______________________________________________
Devel mailing list
Devel at openvz.org
https://lists.openvz.org/mailman/listinfo/devel
More information about the Devel
mailing list