[PATCH 5.1 049/371] net: phy: Check against net_device being NULL