To correct someone or a situation.
Tom was late for work and did not get his job done. So the boss had to line it out.