From 98bcb391cb1f467ac4f311771e886f577d5fedda Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Fri, 11 Apr 2003 12:34:39 -0700 Subject: [PATCH] [IGMP]: Dont dork with igmp timers on device down if not CONFIG_IP_MULTICAST. --- net/ipv4/igmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index c99b3e63c6b66..265eb06044360 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c @@ -1161,12 +1161,14 @@ void ip_mc_down(struct in_device *in_dev) ASSERT_RTNL(); +#ifdef CONFIG_IP_MULTICAST in_dev->mr_ifc_count = 0; if (del_timer(&in_dev->mr_ifc_timer)) atomic_dec(&in_dev->refcnt); in_dev->mr_gq_running = 0; if (del_timer(&in_dev->mr_gq_timer)) atomic_dec(&in_dev->refcnt); +#endif for (i=in_dev->mc_list; i; i=i->next) igmp_group_dropped(i); -- 2.53.0