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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Aug 2021 09:48:52 +0000 (10:48 +0100)
commit99d81e942474cc7677d12f673f42a7ea699e2589
tree314168ae1df4d55ecd037227221a5d0050b49263
parent663d946af5fb2fde0c0498f11fb295e9e8db979f
net: mdio-mux: Don't ignore memory allocation errors

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>
drivers/net/mdio/mdio-mux.c