[PATCH 3.18 087/134] mdio_bus: Fix use-after-free on device_register fails