It looked to be a long day for John Lackey in the first inning at Camden Yards Saturday. The first four Baltimore Orioles all reached base with hard-hit balls and quickly grabbed a 2-0 lead.

But just as quickly, Lackey turned the day around and allowed just three more hits through the seventh inning in what was probably his second-best outing of the season, leading to a 5-4 Red Sox victory.

The win snapped a two-game losing streak for the Red Sox and gave them just their second win in six tries agains the Orioles this year.

The Sox overcame the early 2-0 deficit with a two-run homer from Mike Carp and a run-scoring double from Stephen Drew in the fourth.

Boston added a manufactured run on a single, stolen base, sacrifice and groundout in the fifth and got a solo homer from Jonny Gomes in the sixth to close out the scoring.

Matt Wieters smacked a two-run homer off closer Andrew Bailey in the ninth and a one-out single by J.J. Hardy brought the potential winning run to the plate, but pinch-runner Alexi Casilla apparently lost track of the number of outs and was doubled off first when Ryan Flaherty flied to right.

Lackey saw a four-game winless streak come to an end. His last victory had been back on May 24 against Cleveland, when he went seven innings and allowed just one run on two hits.