net: stmmac: dwmac4/5: Clear unused address entries
authorJose Abreu <Jose.Abreu@synopsys.com>
Fri, 24 May 2019 08:20:25 +0000 (10:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:28:21 +0000 (07:28 +0200)
commite703ea55e717ab779bd23abbae3ce8b68dc12b9a
treed09e6beea8f2cc739a53b8d03e0baa6b3693f132
parente20d2f994fd99f3d483cae62cec8efbcfbfb22ae
net: stmmac: dwmac4/5: Clear unused address entries

[ Upstream commit 0620ec6c62a5a07625b65f699adc5d1b90394ee6 ]

In case we don't use a given address entry we need to clear it because
it could contain previous values that are no longer valid.

Found out while running stmmac selftests.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c