diff options
author | Jisheng Zhang <Jisheng.Zhang@synaptics.com> | 2020-04-03 05:23:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-04 01:58:54 +0300 |
commit | 3e1221acf6a8f8595b5ce354bab4327a69d54d18 (patch) | |
tree | 0a6b7d76f567dc85d34071509ccd6cc77ed44b1e /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 468c2a100208461c1821315f6fd81b32b9d12561 (diff) | |
download | linux-3e1221acf6a8f8595b5ce354bab4327a69d54d18.tar.xz |
net: stmmac: dwmac1000: fix out-of-bounds mac address reg setting
Commit 9463c4455900 ("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: 9463c4455900 ("net: stmmac: dwmac1000: Clear unused address entries")
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions