Research In Motion and Samsung have settled a lawsuit in which RIM alleged the South Korean electronics giant had infringed on its well-known BlackBerry trademark with its competing BlackJack smartphone.

RIM said the companies have agreed to keep the terms of pact confidential, but added the deal includes limitations on use of the BlackJack trademark and the withdrawal of the trademark application for BlackJack.

In the suit filed in December in the U.S. District Court for the Central District of California, RIM had alleged Samsung was "misleading the public into falsely believing that Samsung's goods and services are connected with RIM's business."

RIM also said in its statement that the settlement with Samsung includes "certain reasonable measures to avoid confusion in the marketplace."

RIM had sought unspecified damages as well as legal costs, and had asked Samsung to "deliver to RIM for destruction" every item that bears the BlackJack mark that the company holds or has sold.

In its lawsuit, RIM had said Samsung's BlackJack was very similar to the latest in RIM's lineup of popular smartphones, the BlackBerry Pearl.

Earlier this week, RIM won a second victory in a key British patent lawsuit that threatened the future of the BlackBerry in Britain.