mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
[NET]: Fix infinite loop in dev_mc_unsync().
From: Joe Perches <joe@perches.com> Based upon an initial patch and report by Luis R. Rodriguez. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
03f49f3457
commit
e9671fcb3b
@ -168,13 +168,13 @@ void dev_mc_unsync(struct net_device *to, struct net_device *from)
|
||||
da = from->mc_list;
|
||||
while (da != NULL) {
|
||||
next = da->next;
|
||||
if (!da->da_synced)
|
||||
continue;
|
||||
if (da->da_synced) {
|
||||
__dev_addr_delete(&to->mc_list, &to->mc_count,
|
||||
da->da_addr, da->da_addrlen, 0);
|
||||
da->da_synced = 0;
|
||||
__dev_addr_delete(&from->mc_list, &from->mc_count,
|
||||
da->da_addr, da->da_addrlen, 0);
|
||||
}
|
||||
da = next;
|
||||
}
|
||||
__dev_set_rx_mode(to);
|
||||
|
Loading…
Reference in New Issue
Block a user