Dodgers starter Clayton Kershaw (6-5) turned in a quality performance as he nearly went the distance and earned his sixth win of the season Wednesday night against the Giants.

Kershaw surrendered a two-run home run to Buster Posey in the fourth for his only mistake of the night. He allowed a leadoff single in the ninth inning before his night was over. The left-hander yielded two runs on four hits and one walk while striking out seven in eight innings in a 4-2 win.

It was Kershaw's first win since May 20. He has allowed two runs or fewer in four of his last five starts. He is scheduled to take the mound Tuesday at Colorado. He allowed three runs over seven innings pitched in his previous meeting at Coors Field on May 31.