Photo: Don Feria, Getty Images  Head coach Jim Harbaugh of the San Francisco 49ers laughes with Brandon Lloyd #84 of the San Francisco 49ers after their win over the Arizona Cardinals at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Don Feria/Getty Images)  Head coach Jim Harbaugh of the San Francisco 49ers laughes with...  Head coach Jim Harbaugh of the San Francisco 49ers runs onto the field to shake hands with head coach Bruce Arians of the Arizona Cardinals after their game at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Ezra Shaw/Getty Images)  Head coach Jim Harbaugh of the San Francisco 49ers runs onto the...  San Francisco 49ers quarterback Colin Kaepernick, left, hugs running back Frank Gore (21) after an NFL football game against the Arizona Cardinals in Santa Clara, Calif., Sunday, Dec. 28, 2014. The 49ers won 20-17. (AP Photo/Marcio Jose Sanchez)  San Francisco 49ers quarterback Colin Kaepernick, left, hugs...  Frank Gore #21 of the San Francisco 49ers drives against the Arizona Cardinals in the third quarter at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Don Feria/Getty Images)  Frank Gore #21 of the San Francisco 49ers drives against the...  Craig Dahl #43 of the San Francisco 49ers celebrates an interception in the fourth quarter with teammate Aaron Lynch #59 of the San Francisco 49ers against the Arizona Cardinals at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Don Feria/Getty Images)  Craig Dahl #43 of the San Francisco 49ers celebrates an...  SANTA CLARA, CA - DECEMBER 28: Chris Culliver #29 of the San Francisco 49ers intercepts a pass against the Arizona Cardinals in the third quarter at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Don Feria/Getty Images)  SANTA CLARA, CA - DECEMBER 28: Chris Culliver #29 of the San...  SANTA CLARA, CA - DECEMBER 28: Colin Kaepernick #7 of the San Francisco 49ers celebrates with Bruce Miller #49 of the San Francisco 49ers after a touchdown in the third quarter against the Arizona Cardinals at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Don Feria/Getty Images)  SANTA CLARA, CA - DECEMBER 28: Colin Kaepernick #7 of the San...  SANTA CLARA, CA - DECEMBER 28: Bruce Miller #49 of the San Francisco 49ers completes a pass for a touchdown in the third quarter against the Arizona Cardinals at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Don Feria/Getty Images)  SANTA CLARA, CA - DECEMBER 28: Bruce Miller #49 of the San...  San Francisco 49ers fullback Bruce Miller, center, is congratulated by head coach Jim Harbaugh, left, and running back Alfonso Smith (38) after scoring on a 3-yard touchdown reception against the Arizona Cardinals during the third quarter of an NFL football game in Santa Clara, Calif., Sunday, Dec. 28, 2014. (AP Photo/Marcio Jose Sanchez)  San Francisco 49ers fullback Bruce Miller, center, is congratulated...  San Francisco 49ers running back Frank Gore (21) runs against Arizona Cardinals free safety Tyrann Mathieu during the first half of an NFL football game in Santa Clara, Calif., Sunday, Dec. 28, 2014. (AP Photo/Tony Avelar)  San Francisco 49ers running back Frank Gore (21) runs against...  SANTA CLARA, CA - DECEMBER 28: Larry Fitzgerald #11 of the Arizona Cardinals is stopped by Michael Wilhoite #57 of the San Francisco 49ers and Craig Dahl #43 of the San Francisco 49ers in the first quarter at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Don Feria/Getty Images)  SANTA CLARA, CA - DECEMBER 28: Larry Fitzgerald #11 of the Arizona...  SANTA CLARA, CA - DECEMBER 28: Anquan Boldin #81 of the San Francisco 49ers avoids the tackle against Tyrann Mathieu #32 of the Arizona Cardinals in the first half at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Ezra Shaw/Getty Images)  SANTA CLARA, CA - DECEMBER 28: Anquan Boldin #81 of the San...  SANTA CLARA, CA - DECEMBER 28: head coach Jim Harbaugh of the San Francisco 49ers watches a touchdown from the Arizona Cardinals in the first quarter at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Don Feria/Getty Images)  SANTA CLARA, CA - DECEMBER 28: head coach Jim Harbaugh of the San...  San Francisco 49ers running back Frank Gore (21) runs from Arizona Cardinals defensive end Matt Shaughnessy during the first quarter of an NFL football game in Santa Clara, Calif., Sunday, Dec. 28, 2014. (AP Photo/Marcio Jose Sanchez)  San Francisco 49ers running back Frank Gore (21) runs from Arizona...  Arizona Cardinals wide receiver Larry Fitzgerald (11) is tackled by San Francisco 49ers linebacker Michael Wilhoite, left, and strong safety Craig Dahl during the first half of an NFL football game in Santa Clara, Calif., Sunday, Dec. 28, 2014. (AP Photo/Marcio Jose Sanchez)  Arizona Cardinals wide receiver Larry Fitzgerald (11) is tackled by...  A San Francisco 49ers fan, right, reacts as Arizona Cardinals wide receiver Michael Floyd (15) scores on a 20-yard touchdown reception against the 49ers during the first quarter of an NFL football game in Santa Clara, Calif., Sunday, Dec. 28, 2014. (AP Photo/Tony Avelar)  A San Francisco 49ers fan, right, reacts as Arizona Cardinals wide...  SANTA CLARA, CA - DECEMBER 28: The San Francisco 49ers Gold Rush Cheerleaders support their team against the Arizona Cardinals at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Ezra Shaw/Getty Images)  SANTA CLARA, CA - DECEMBER 28: The San Francisco 49ers Gold Rush...  SANTA CLARA, CA - DECEMBER 28: Colin Kaepernick #7 of the San Francisco 49ers avoids the tackle from Calais Campbell #93 of the Arizona Cardinals in the second quarter at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Ezra Shaw/Getty Images)  SANTA CLARA, CA - DECEMBER 28: Colin Kaepernick #7 of the San...  Arizona Cardinals' Ted Ginn (19) is tackled by San Francisco 49ers defensive back L.J. McCray (31) after returning a kickoff during the first quarter of an NFL football game in Santa Clara, Calif., Sunday, Dec. 28, 2014. (AP Photo/Tony Avelar)  Arizona Cardinals' Ted Ginn (19) is tackled by San Francisco 49ers...  SANTA CLARA, CA - DECEMBER 28: San Francisco 49ers fans hold up signs supporting head coach Jim Harbaugh of the San Francisco 49ers during their game against the Arizona Cardinals at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Ezra Shaw/Getty Images)  SANTA CLARA, CA - DECEMBER 28: San Francisco 49ers fans hold up...  SANTA CLARA, CA - DECEMBER 28: Head coach Jim Harbaugh of the San Francisco 49ers hugs 49ers owner Jed York before their game against the Arizona Cardinals at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Ezra Shaw/Getty Images)  SANTA CLARA, CA - DECEMBER 28: Head coach Jim Harbaugh of the San...  SANTA CLARA, CA - DECEMBER 28: Head coach Jim Harbaugh of the San Francisco 49ers watches his team during their game against the Arizona Cardinals at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Ezra Shaw/Getty Images)  SANTA CLARA, CA - DECEMBER 28: Head coach Jim Harbaugh of the San...  SANTA CLARA, CA - DECEMBER 28: A member of the Gold Rush Cheerleaders rallies the crown against the Arizona Cardinals at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Don Feria/Getty Images)  SANTA CLARA, CA - DECEMBER 28: A member of the Gold Rush...  SANTA CLARA, CA - DECEMBER 28: Frank Gore #21 of the San Francisco 49ers runs with the ball against the Arizona Cardinals at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Ezra Shaw/Getty Images)  SANTA CLARA, CA - DECEMBER 28: Frank Gore #21 of the San Francisco...  SANTA CLARA, CA - DECEMBER 28: Michael Crabtree #15 of the San Francisco 49ers is tackled by Antonio Cromartie #31 of the Arizona Cardinals in the first quarter at Levi's Stadium on December 28, 2014 in Santa Clara, California. (Photo by Don Feria/Getty Images)  SANTA CLARA, CA - DECEMBER 28: Michael Crabtree #15 of the San...  Arizona Cardinals wide receiver Michael Floyd (15) scores on a 41-yard touchdown reception over San Francisco 49ers strong safety Craig Dahl during the second quarter of an NFL football game in Santa Clara, Calif., Sunday, Dec. 28, 2014. (AP Photo/Tony Avelar)  Arizona Cardinals wide receiver Michael Floyd (15) scores on a...  San Francisco 49ers wide receiver Anquan Boldin (81) celebrates after scoring on a 76-yard touchdown reception against the Arizona Cardinals during the first quarter of an NFL football game in Santa Clara, Calif., Sunday, Dec. 28, 2014. (AP Photo/Tony Avelar)  San Francisco 49ers wide receiver Anquan Boldin (81) celebrates...  Arizona Cardinals wide receiver Michael Floyd, top, celebrates after scoring on a 41-yard touchdown reception with wide receiver John Brown (12) in front of San Francisco 49ers strong safety Craig Dahl (43) during the second quarter of an NFL football game in Santa Clara, Calif., Sunday, Dec. 28, 2014. (AP Photo/Tony Avelar)  Arizona Cardinals wide receiver Michael Floyd, top, celebrates...  San Francisco 49ers quarterback Colin Kaepernick (7) passes against the Arizona Cardinals during the first quarter of an NFL football game in Santa Clara, Calif., Sunday, Dec. 28, 2014. (AP Photo/Tony Avelar)  San Francisco 49ers quarterback Colin Kaepernick (7) passes against...  Arizona Cardinals running back Kerwynn Williams (33) runs against the San Francisco 49ers during the first quarter of an NFL football game in Santa Clara, Calif., Sunday, Dec. 28, 2014. (AP Photo/Tony Avelar)  Arizona Cardinals running back Kerwynn Williams (33) runs against...  Arizona Cardinals running back Stepfan Taylor (30) runs against the San Francisco 49ers during the first quarter of an NFL football game in Santa Clara, Calif., Sunday, Dec. 28, 2014. (AP Photo/Tony Avelar)  Arizona Cardinals running back Stepfan Taylor (30) runs against the...
In a game in which the on-field action was overshadowed by the drama concerning the head coach on the home sideline in baseball cap, black sweatshirt and khakis, the 49ers ended their tumultuous 2014 season Sunday with a 20-17 win over the Cardinals at Levi’s Stadium.  Before exiting the field, Harbaugh hugged a group of players that included right guard Alex Boone, wide receiver Anquan Boldin, safety Bubba Ventrone and Arizona wideout Larry Fitzgerald.  Sunday’s game also could have marked the final game with the 49ers for several decorated players, most notably running back Frank Gore and defensive lineman Justin Smith.  Smith could be swayed into staying if defensive coordinator Vic Fangio or defensive line coach Jim Tomsula is named Harbaugh’s successor, a source has said.  On Sunday, Smith was part of a decimated defense.  Because of injuries and the release of defensive tackle Ray McDonald, the 49ers started five players who opened the season as backups:  Arizona’s third-string quarterback, Ryan Lindley, who arrived with no touchdown passes and eight interceptions in 225 career attempts, took advantage of the rag-tag group in the first half.  Kaepernick completed 15 of  26 passes for 204 yards, throwing a 76-yard touchdown pass in the first quarter to Boldin (two catches, 81 yards), who went surpassed 1,000 yards for the seventh time in his career.