Will Ferrell was hospitalized after an SUV he was riding in flipped over during a two-car accident last night. He has since been released and a rep for the actor told TMZ he suffered no significant injuries and is doing well.

According to the California Highway Patrol report, Ferrell was a passenger in an SUV traveling along I-5 in Orange County when the driver of a 2007 Toyota veered into their lane and struck the right rear of their car, causing it to "lose control, hit the center divider and overturn."

Ferrell and the two other passengers in his car were all taken to the hospital. Witnesses told TMZ that the actor was conscious and talking on his phone when he was loaded into the ambulance.

Ferrell had been traveling back from San Diego, where he appeared at a Funny or Die event as Ron Burgundy, his character from "Anchorman." He and Billy Eichner were encouraging people to register to vote ahead of the midterm elections.