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:35:49 +0000 (08:35 -0400)
commit13af9c81e62fea5908687bb99a377c581e12ee42
treeae13d817d1454c009843973919b7164f75823efa
parentdf61235881c8d331fa6ac0b91d4591f7030d6adf
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: 342fa1964439 ("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/mdio/mdio-mux.c