Avenging his ugly loss to the Giants in the Dodger Stadium home opener, Hyun-Jin Ryu worked seven solid innings Thursday to lead Los Angeles to a 2-1 victory, preventing San Francisco from sweeping the three-game series.