Tyler Kennedy, fresh off the injured list, scored two goals — including the winner — and the San Jose Sharks beat the Boston Bruins 7-4 on Thursday night for their third straight victory.

Tommy Wingels and Joe Pavelski also scored twice for the Sharks, who snapped a three-game losing streak to the Bruins. Tomas Hertl added a late goal.

The Sharks scored twice on the power play, giving them seven in seven games after being shut out in their previous four.

Reilly Smith scored twice for the Bruins, who ended a scoring drought but extended their losing streak to three. Gregory Campbell and Torey Krug also scored.

Antti Niemi made 20 saves in winning his third straight. Tuukka Rask stopped 37 shots in losing to the Sharks for the first time in four games.