team: replicate options on register
authorJiri Pirko <jpirko@redhat.com>
Wed, 16 Nov 2011 11:09:09 +0000 (11:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2011 23:16:38 +0000 (18:16 -0500)
commit358b838291f618278080bbed435b755f9b46748e
treeb8203f872977fff505fcb8b1c7ce44deace9690b
parent61dc3461b9549bc10a2f16d254250680cadafcce
team: replicate options on register

Since multiple team instances are putting defined options into their
option list, during register each option must be cloned before added
into list. This resolves uncool memory corruptions when using multiple
teams.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c
drivers/net/team/team_mode_activebackup.c
include/linux/if_team.h