Commit 98bcb391 authored by David S. Miller's avatar David S. Miller

[IGMP]: Dont dork with igmp timers on device down if not CONFIG_IP_MULTICAST.

parent 66d2856c
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment