|
@@ -3721,10 +3721,10 @@ static int ip6_route_dev_notify(struct notifier_block *this,
|
|
|
/* NETDEV_UNREGISTER could be fired for multiple times by
|
|
|
* netdev_wait_allrefs(). Make sure we only call this once.
|
|
|
*/
|
|
|
- in6_dev_put(net->ipv6.ip6_null_entry->rt6i_idev);
|
|
|
+ in6_dev_put_clear(&net->ipv6.ip6_null_entry->rt6i_idev);
|
|
|
#ifdef CONFIG_IPV6_MULTIPLE_TABLES
|
|
|
- in6_dev_put(net->ipv6.ip6_prohibit_entry->rt6i_idev);
|
|
|
- in6_dev_put(net->ipv6.ip6_blk_hole_entry->rt6i_idev);
|
|
|
+ in6_dev_put_clear(&net->ipv6.ip6_prohibit_entry->rt6i_idev);
|
|
|
+ in6_dev_put_clear(&net->ipv6.ip6_blk_hole_entry->rt6i_idev);
|
|
|
#endif
|
|
|
}
|
|
|
|