At least the Yankees had something to smile about Wednesday.

Hours after learning that Masahiro Tanaka was headed for the disabled list with a right elbow injury, Jacoby Ellsbury launched a solo home run in the 14th inning to lift the Yankees to a 5-4 win over the Indians at Progressive Field.

Ellsbury’s home run ended an eight-inning scoreless duel as the two teams were tied at 4 after the fifth, only to post one zero after another for nearly three hours.

“Our bullpen pitched unbelievable to give us a chance to win that game,” Ellsbury said. “It was a nice team win.”

Chase Whitley (4-2) earned the win with two scoreless innings in his first big-league relief appearance. David Robertson closed it out in the 14th for his 22nd save in 24 chances.

Mark Teixeira belted a pair of home runs against starter Josh Tomlin, but he also committed a throwing error in the first inning that led to three unearned runs against newcomer Brandon McCarthy, making his first start for the Bombers.