Ezra Shaw/Getty Images

After being released by the Oakland Raiders on Oct. 7, quarterback Matt Flynn has signed with the Buffalo Bills.

The team confirmed the news on Monday:

ESPN's Adam Schefter had previously reported that the Bills were at least going to work him out, so it seems everything went well during that process:

Former Seahawks and Raiders QB Matt Flynn is in Buffalo, there to work out for Bills, via @mikerodak and me. — Adam Schefter (@AdamSchefter) October 13, 2013

Per the Bills' Twitter account, head coach Doug Marrone shed light on the Flynn signing and indicated the team likes what it has in undrafted rookie Jeff Tuel:

Marrone: Flynn signing is to ensure #Bills have quality depth. Still feel good about development of Jeff Tuel. — Buffalo Bills (@buffalobills) October 14, 2013

Flynn has to hope his third NFL destination in less than two seasons is a charm for him to get a grip on a starting QB job.

The former seventh-round pick out of LSU sat behind Aaron Rodgers with the Green Bay Packers and made the most of his opportunities when he had them.

In the last of Flynn's two starts with the Pack, he threw for 480 yards and six touchdowns in a 2011 Week 17 victory over the Detroit Lions. That was enough to land him a lucrative free-agent deal with the Seattle Seahawks in the subsequent offseason.

Unfortunately for Flynn, he was beaten out in training camp by rookie third-round pick Russell Wilson, who led the Seahawks to the playoffs and has established them as one of the best teams in the league at the moment.

When Wilson rose to stardom, Flynn became expendable, and Seattle parted ways with him. The Seahawks traded Flynn to the Raiders for a fifth-round 2014 draft choice and a conditional 2015 pick.

Although Flynn figured to be the starter in Oakland, another dual-threat dynamic quarterback in Terrelle Pryor beat him out as the No. 1 option on the depth chart.

Flynn's only start with Oakland came at home in Week 4, when he was 21-of-32 for 227 yards with a touchdown and an ugly pick-six. He was also sacked seven times and posted a QBR of 2.9.

After a rather embarrassing demotion below undrafted rookie Matt McGloin on the depth chart, it was clear his time as a Raider was finished.

Perhaps going to Buffalo is the fresh start Flynn needs to realize his potential as a starting NFL signal-caller.

The Bills have had their fair share of injuries at the position this year, with Kevin Kolb out for the year, rookie EJ Manuel nursing a knee injury and Thad Lewis spraining his foot in Week 6, per ESPN. As a result, Flynn could see action sooner than later.