A Bronx man who spent six years in prison before his conviction was overturned can sue his lawyer for malpractice, the Appellate Division, First Department, ruled Thursday.

A unanimous panel affirmed Justice Mary Ann Brigantti-Hughes’ denial of defendant Stephen Goldenberg’s motion for summary judgment in Meralla v. Goldenberg, 24347/98.