Prosecutors say rock guitarist Rick Derringer carried a loaded gun in his carry-on bag on a Delta Air Lines flight from Cancun, Mexico, but was stopped after landing in Atlanta.

A federal air marshal quoted in court records says Derringer told him that he flies as many as 50 times per year with the gun in his carry-on bag, and has never had a problem.

More: Jason Derulo Goes on Rant Against American Airlines

A criminal complaint says Derringer has a Florida pistol permit and thought he could bring the gun on airplanes.

Derringer was charged with unlawfully entering an airport's secure area Jan. 9. His representatives didn't immediately return calls and emails.

A Transportation Security Administration spokesman had no immediate comment.

Derringer sang the 1965 hit "Hang on Sloopy" and later recorded "Rock and Roll, Hoochie Koo."