[PATCH 3.16 172/202] mdio_bus: Fix use-after-free on device_register fails