[PATCH 5.10 005/599] netdevice: add the case if dev is NULL