diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 523d26f5e22e21e2f8228bcbd780f4ae0197e244..ffa847fc961941a73160f58ea63db962108f5781 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c @@ -1816,6 +1816,7 @@ void ip_mc_destroy_dev(struct in_device *in_dev) while ((i = rtnl_dereference(in_dev->mc_list)) != NULL) { in_dev->mc_list = i->next_rcu; in_dev->mc_count--; + ip_mc_clear_src(i); ip_ma_put(i); } }