The State Bar of Texas has filed a lawsuit against an attorney who collected millions of dollars from wrongly convicted ex-inmates, saying he committed professional misconduct by charging fees that were illegal and unconscionable.

Lubbock attorney Kevin Glasheen has been credited by lawmakers and advocates as the driving force behind a 2009 law that made Texas the most generous state in the nation in compensating the wrongly convicted. He has said he acted appropriately in charging his clients a 25 percent contingency fee.