diff options
author | Jiri Pirko <jpirko@redhat.com> | 2012-06-19 01:54:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-19 18:00:22 -0400 |
commit | 5149ee58385bdfef260fb07a89a8ff0913be6b25 (patch) | |
tree | 556edbb864cff154dfef95858737fd900f6e9a24 /drivers/net/team | |
parent | d299cd51166c156c77250f4cdd6363b74fd2f77e (diff) |
team: add mode priv to port
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/team')
-rw-r--r-- | drivers/net/team/team.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index 343f4ffaf8f0..dea2d8afa2f4 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c | |||
@@ -793,7 +793,8 @@ static int team_port_add(struct team *team, struct net_device *port_dev) | |||
793 | return -EBUSY; | 793 | return -EBUSY; |
794 | } | 794 | } |
795 | 795 | ||
796 | port = kzalloc(sizeof(struct team_port), GFP_KERNEL); | 796 | port = kzalloc(sizeof(struct team_port) + team->mode->port_priv_size, |
797 | GFP_KERNEL); | ||
797 | if (!port) | 798 | if (!port) |
798 | return -ENOMEM; | 799 | return -ENOMEM; |
799 | 800 | ||