]> git.baikalelectronics.ru Git - kernel.git/commit
net: mdio-mux: Don't ignore memory allocation errors
authorSaravana Kannan <saravanak@google.com>
Wed, 18 Aug 2021 03:38:02 +0000 (20:38 -0700)
committerSasha Levin <sashal@kernel.org>
Thu, 26 Aug 2021 12:36:19 +0000 (08:36 -0400)
commit151f4f223d3069c9c9f16c650a6084923fec573c
tree97b41ea79b2e17af2c799f099452644e8d3eee20
parent119cefe64c0ac11293cb3243621fd66908b30d93
net: mdio-mux: Don't ignore memory allocation errors

[ Upstream commit 99d81e942474cc7677d12f673f42a7ea699e2589 ]

If we are seeing memory allocation errors, don't try to continue
registering child mdiobus devices. It's unlikely they'll succeed.

Fixes: 24e01b827fd1 ("mdio: mux: make child bus walking more permissive and errors more verbose")
Signed-off-by: Saravana Kannan <saravanak@google.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Marc Zyngier <maz@kernel.org>
Tested-by: Marc Zyngier <maz@kernel.org>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/mdio-mux.c