Corey Brewer cleared waivers on Thursday and will sign a three-year deal with the Mavericks.

"He's got an opportunity to help us this year," coach Rick Carlisle said. "This is one of those situations where, at this point, if we can get a guy who can help us situationally or if he even ends up playing more, if he can help us get one stop at the right time, it's a good move for us."

The Knicks bought out Brewer this week, a few days after acquiring him from the Timberwolves in the Carmelo Anthony trade.

About a dozen teams expressed interest in Brewer.