Chris Brown just got confined for 90 days ... but not in jail ... in rehab.
Brown and his lawyer, Mark Geragos, were just in court for a progress report in the Rihanna beating case. TMZ broke the story ... the Probation Dept. notified the judge that Brown flew into yet another violent rage while he was in a Malibu rehab joint for anger management, and was thrown out of the facility after only 2 weeks. The Probation Dept. recommended live-in anger management rehab.
The judge agreed with Probation, and ordered Brown to check into a facility for 90 days, and the facility must be in L.A. County and approved by Probation.
The judge is letting Chris juggle his criminal cases and will let him fly to D.C. for court hearings on his criminal assault case.
Brown must also submit to drug testing at the rehab facility. He must also take any prescriptions recommended by the rehab place.
The judge also wants a report on the D.C. incident ... something that could result in Chris getting his probation yanked in the Rihanna case ... which could then result in prison time.