net: stmmac: gmac4+: Not all Unicast addresses may be available
authorJose Abreu <Jose.Abreu@synopsys.com>
Sun, 6 Oct 2019 11:08:56 +0000 (13:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jan 2020 09:24:33 +0000 (10:24 +0100)
commitb95b6f84c45c253f529127bf88e6f9415bc75d5b
tree6304211955253abb12c13839e9c35b4bde52686f
parent9ca487b7600fa0a0afc046a254215c96c5dae3ce
net: stmmac: gmac4+: Not all Unicast addresses may be available

[ Upstream commit 25683bab09a70542b9f8e3e28f79b3369e56701f ]

Some setups may not have all Unicast addresses filters available. Check
the number of available filters before trying to setup it.

Fixes: 477286b53f55 ("stmmac: add GMAC4 core support")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.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