EXCLUSIVE

Good news for Ice Cube and Dr. Dre -- they've been dismissed from the wrongful death lawsuit that had been filed against them and Suge Knight for the death of Terry Carter.

A court ruled Cube and Dre aren't responsible for Carter's death because it's unfathomable to blame them for Knight's reckless and allegedly criminal act -- running over and killing Carter.

TMZ broke the story ... Cube and Dre were named defendants, along with Suge, when Carter's family filed the suit ... claiming Cube and Dre hired known gang members as security to keep Knight away from "Straight Outta Compton" shoot locations.

Suge ran over Carter shortly after security gave him the boot, and the family felt that's what sent him into him into a rage.