We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f585a99 commit 905a6f9Copy full SHA for 905a6f9
net/ipv6/ip6mr.c
@@ -259,10 +259,12 @@ static void __net_exit ip6mr_rules_exit(struct net *net)
259
{
260
struct mr6_table *mrt, *next;
261
262
+ rtnl_lock();
263
list_for_each_entry_safe(mrt, next, &net->ipv6.mr6_tables, list) {
264
list_del(&mrt->list);
265
ip6mr_free_table(mrt);
266
}
267
+ rtnl_unlock();
268
fib_rules_unregister(net->ipv6.mr6_rules_ops);
269
270
#else
@@ -289,7 +291,10 @@ static int __net_init ip6mr_rules_init(struct net *net)
289
291
290
292
static void __net_exit ip6mr_rules_exit(struct net *net)
293
294
295
ip6mr_free_table(net->ipv6.mrt6);
296
+ net->ipv6.mrt6 = NULL;
297
298
299
#endif
300
0 commit comments