Rock legend Tom Petty died of an accidental overdose, his family said in a Facebook post Friday evening.

Dana Petty, his wife, and Adria, his daughter, Adria, released the autopsy report from the coroner’s office that said the Petty suffered an overdose that was caused by a variety of medications.

The official report confirmed that Petty had fentanyl and oxycodone in his system.

Despite having a fractured hip, knee problems and emphysema, Petty continued to perform, finishing up a tour just days before his Oct. 2, 2017, death.

He was 66 years old.