Jeremy Lin had 28 points and a career-high 14 assists as New York Knicks ended the Dallas Mavericks' six-game winning streak with a 104-97 victory Sunday.