[PATCH 6.0 161/240] net: netsec: fix error handling in netsec_register_mdio()