(Undated) -- Bank of America will pay $404 million to settle all claims with Freddie Mac.

The claims came about from residential mortgages BofA sold to the government-backed housing agency between 2000 and 2009.

BofA has also agreed to compensate Freddie Mac for certain past losses and potential future losses. BofA says the payments will be fully covered by the company's reserves.