Linus Ullmark made 31 saves and Connor Clifton also scored as the Bruins improved to 8-0-0 at TD Garden. David Pastrnak added an empty netter for Boston, which is 12-2-0 overall. Noah Hanifin scored for the Flames, who tacked on a seventh. Calgary swept the Bruins early, holding them without a shot through the first seven minutes. The Flames scored on the end of a power play as Hanifin got his first goal of the season at 4:43 of the opening period. Clifton followed with a shot of his own at 16:38 to tie the game. McAvoy’s goal came on the power play at 18:27 of the second on a drive past Calgary goaltender Dan Vladar, who finished with 24 saves. McAvoy, the Bruins’ top defenseman, was expected to be sidelined for six months after undergoing shoulder surgery in June. The 24-year-old had 10 goals and 56 points in 78 games last season, including 21 points on the power play. NOTES: McAvoy played 18:53. He averaged 25 minutes of ice time last season. … Clifton and McAvoy became the 17th and 18th scorers for the Bruins this season. … With McAvoy restored from long-term injured reserve, the Bruins waived defenseman Mike Reilly with the intention of sending him to Providence of the AHL. … Milan Lucic, who won a Stanley Cup with Boston in 2011, is back with the Flames. The 34-year-old Lucic is in his fourth season with Calgary. … The Flames started the season with five wins in their first six games. They fell to 5-5-2 overall after losing all three games on their road trip. … Calgary moved in fourth in the NHL in shots per game (36.9). The Flames outshot the Bruins 37-22. … Boston is 6-0-0 against Western Conference opponents. NEXT Flames: Host the Winnipeg Jets on Saturday night. Bruins: At Buffalo Sabers Saturday night.