Tim Hudson ended a mini-slump with an effectively stubborn 6 1/3-inning performance, and Buster Posey delivered a key run with a third-inning single Tuesday night as the Giants beat the Dodgers, 2-0, despite a solid start from Carlos Frias.