mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 01:43:18 +00:00
Commit9463c44559("net: stmmac: dwmac1000: Clear unused address entries") cleared the unused mac address entries, but introduced an out-of bounds mac address register programming bug -- After setting the secondary unicast mac addresses, the "reg" value has reached netdev_uc_count() + 1, thus we should only clear address entries if (addr < perfect_addr_number) Fixes:9463c44559("net: stmmac: dwmac1000: Clear unused address entries") Signed-off-by: Jisheng Zhang <[email protected]> Signed-off-by: David S. Miller <[email protected]>