Danielle Patti

Danielle Patti

*Chris Brown has gotten the court’s help to keep an obsessed fan away from his home.

A woman named Danielle Patti has been repeatedly arrested for showing up uninvited at his house, according to TMZ.

After taking legal action, a judge has ordered Patti to stay away from Breezy, his home and his shows for the next five years, the website reported:

Chris’ lawyer, Setara Qassim, was in court where it was decided that Patti’s not a high risk right now — she’s currently in a mental hospital as a result of her last trespassing arrest at Chris’ house.

TMZ broke the story … she was first arrested in December at CB’s property, then again in April … when Chris says she shouted some graphic sexual comments.

Unclear when Patti will be released, but Chris can rest a little easier now.