[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 07 Jul 2015 18:53:55 +0300
From: Vasily Averin <vvs@...tuozzo.com>
To: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
CC: intel-wired-lan@...ts.osuosl.org,
Jeff Kirsher <jeffrey.t.kirsher@...el.com>,
Hannes Frederic Sowa <hannes@...essinduktion.org>,
Cong Wang <xiyou.wangcong@...il.com>
Subject: [PATCH 3/3] ipmr_free_table() should be called under taken rtnl_lock
ipmr_free_table() calls unregister_netdevice_many() inside
and changes net_todo_list protected by rtnl_lock
Signed-off-by: Vasily Averin <vvs@...tuozzo.com>
---
net/ipv6/ip6mr.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 74ceb73..9108636 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -250,7 +250,9 @@ static int __net_init ip6mr_rules_init(struct net *net)
return 0;
err2:
+ rtnl_lock();
ip6mr_free_table(mrt);
+ rtnl_unlock();
err1:
fib_rules_unregister(ops);
return err;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists