His release from federal prison was less than 2 years away. Then he shanked an inmate.

An inmate who was set to be released from federal prison in about a year could have as much as another 35 years added to his sentence for stabbing a fellow prisoner.

Detrick L. Layfield, 40, was found guilty of assault with a dangerous weapon after attacking a fellow inmate in Greenville’s Federal Correctional Institution, according to a news release from the U.S. District Court for Southern Illinois.

Layfield assaulted another inmate with an improvised weapon on Sept. 1, 2017. Two other inmates assisted in hiding the weapon, but one later told investigators where the weapon was.

Layfield was convicted by a jury on three charges: assault, possessing a weapon in prison and attempting to obstruct justice.

Sentencing is set for Dec. 14. He could face up to 35 years for all three crimes.

He was originally convicted in 2010 on unlawfully transporting firearms in Western Kentucky and had been scheduled for release in July 2019.

Mary Cooley: 618-239-2535, @MaryCooleyBND

Sometimes the “perfect crime” doesn't quite play out as intended. Here are some criminals who could use some practice.