r6040: Fix multicast list iteration when hash filter is used
This was fixed in mainline by the interface change made in commitf9dcbcc9e3. After walking the multicast list to set up the hash filter, this function will walk off the end of the list when filling the exact-match entries. This was fixed in mainline by the interface change made in commitf9dcbcc9e3. Reported-by: spamalot@hispeed.ch Reference: https://bugzilla.kernel.org/show_bug.cgi?id=15355 Reported-by: Jason Heeris <jason.heeris@gmail.com> Reference: http://bugs.debian.org/600155 Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e3ddbfba3c
commit
e25a2ee620
1 changed files with 1 additions and 0 deletions
|
|
@ -992,6 +992,7 @@ static void r6040_multicast_list(struct net_device *dev)
|
|||
iowrite16(hash_table[3], ioaddr + MAR3);
|
||||
}
|
||||
/* Multicast Address 1~4 case */
|
||||
dmi = dev->mc_list;
|
||||
for (i = 0, dmi; (i < dev->mc_count) && (i < MCAST_MAX); i++) {
|
||||
adrp = (u16 *)dmi->dmi_addr;
|
||||
iowrite16(adrp[0], ioaddr + MID_1L + 8*i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue