FOXBOROUGH, Mass. — The New England Patriots released veteran quarterback Matt Flynn on Monday and signed Ryan Lindley to replace him as the team’s third-stringer.

Flynn signed with the Patriots on June 12, but was on the non-football injury list. He previously played with Green Bay, Seattle, Oakland and Buffalo.

Lindley was forced into a starting role for Arizona late last season and struggled. A sixth-round draft pick in 2012, he came in after Carson Palmer and Drew Stanton were injured for the Cardinals and went 45 for 93 for 562 yards with two touchdown passes and four interceptions. Lindley was 16 of 28 for 82 yards with one TD and two interceptions in a playoff loss to Carolina.

Patriots starter Tom Brady has been suspended by the NFL for the first four games of the season and is fighting the suspension in court. Second-year player Jimmy Garoppolo is the backup.