[PATCH AUTOSEL 4.9 23/24] mdio_bus: Fix use-after-free on device_register fails