diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 20:00:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 20:00:17 -0400 |
commit | 3f5785ec31adcb7cafa9135087297a38d9698cf8 (patch) | |
tree | b7d06f14e1aea0292a88c4bc0305ea602f6ebd33 /net/ipv4/igmp.c | |
parent | 8c1c77ff9be27137fa7cbbf51efedef1a2ae915b (diff) | |
parent | 94265cf5f731c7df29fdfde262ca3e6d51e6828c (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (89 commits)
bonding: documentation and code cleanup for resend_igmp
bonding: prevent deadlock on slave store with alb mode (v3)
net: hold rtnl again in dump callbacks
Add Fujitsu 1000base-SX PCI ID to tg3
bnx2x: protect sequence increment with mutex
sch_sfq: fix peek() implementation
isdn: netjet - blacklist Digium TDM400P
via-velocity: don't annotate MAC registers as packed
xen: netfront: hold RTNL when updating features.
sctp: fix memory leak of the ASCONF queue when free asoc
net: make dev_disable_lro use physical device if passed a vlan dev (v2)
net: move is_vlan_dev into public header file (v2)
bug.h: Fix build with CONFIG_PRINTK disabled.
wireless: fix fatal kernel-doc error + warning in mac80211.h
wireless: fix cfg80211.h new kernel-doc warnings
iwlagn: dbg_fixed_rate only used when CONFIG_MAC80211_DEBUGFS enabled
dst: catch uninitialized metrics
be2net: hash key for rss-config cmd not set
bridge: initialize fake_rtable metrics
net: fix __dst_destroy_metrics_generic()
...
Fix up trivial conflicts in drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
Diffstat (limited to 'net/ipv4/igmp.c')
-rw-r--r-- | net/ipv4/igmp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 672e476c8c8a..f1d27f6c9351 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c | |||
@@ -1155,20 +1155,18 @@ static void igmp_group_dropped(struct ip_mc_list *im) | |||
1155 | 1155 | ||
1156 | if (!in_dev->dead) { | 1156 | if (!in_dev->dead) { |
1157 | if (IGMP_V1_SEEN(in_dev)) | 1157 | if (IGMP_V1_SEEN(in_dev)) |
1158 | goto done; | 1158 | return; |
1159 | if (IGMP_V2_SEEN(in_dev)) { | 1159 | if (IGMP_V2_SEEN(in_dev)) { |
1160 | if (reporter) | 1160 | if (reporter) |
1161 | igmp_send_report(in_dev, im, IGMP_HOST_LEAVE_MESSAGE); | 1161 | igmp_send_report(in_dev, im, IGMP_HOST_LEAVE_MESSAGE); |
1162 | goto done; | 1162 | return; |
1163 | } | 1163 | } |
1164 | /* IGMPv3 */ | 1164 | /* IGMPv3 */ |
1165 | igmpv3_add_delrec(in_dev, im); | 1165 | igmpv3_add_delrec(in_dev, im); |
1166 | 1166 | ||
1167 | igmp_ifc_event(in_dev); | 1167 | igmp_ifc_event(in_dev); |
1168 | } | 1168 | } |
1169 | done: | ||
1170 | #endif | 1169 | #endif |
1171 | ip_mc_clear_src(im); | ||
1172 | } | 1170 | } |
1173 | 1171 | ||
1174 | static void igmp_group_added(struct ip_mc_list *im) | 1172 | static void igmp_group_added(struct ip_mc_list *im) |
@@ -1305,6 +1303,7 @@ void ip_mc_dec_group(struct in_device *in_dev, __be32 addr) | |||
1305 | *ip = i->next_rcu; | 1303 | *ip = i->next_rcu; |
1306 | in_dev->mc_count--; | 1304 | in_dev->mc_count--; |
1307 | igmp_group_dropped(i); | 1305 | igmp_group_dropped(i); |
1306 | ip_mc_clear_src(i); | ||
1308 | 1307 | ||
1309 | if (!in_dev->dead) | 1308 | if (!in_dev->dead) |
1310 | ip_rt_multicast_event(in_dev); | 1309 | ip_rt_multicast_event(in_dev); |
@@ -1414,7 +1413,8 @@ void ip_mc_destroy_dev(struct in_device *in_dev) | |||
1414 | in_dev->mc_list = i->next_rcu; | 1413 | in_dev->mc_list = i->next_rcu; |
1415 | in_dev->mc_count--; | 1414 | in_dev->mc_count--; |
1416 | 1415 | ||
1417 | igmp_group_dropped(i); | 1416 | /* We've dropped the groups in ip_mc_down already */ |
1417 | ip_mc_clear_src(i); | ||
1418 | ip_ma_put(i); | 1418 | ip_ma_put(i); |
1419 | } | 1419 | } |
1420 | } | 1420 | } |