Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314496
b: refs/heads/master
c: 5149ee5
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Jun 19, 2012
1 parent f33d7ae commit 45cd608
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d299cd51166c156c77250f4cdd6363b74fd2f77e
refs/heads/master: 5149ee58385bdfef260fb07a89a8ff0913be6b25
3 changes: 2 additions & 1 deletion trunk/drivers/net/team/team.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,8 @@ static int team_port_add(struct team *team, struct net_device *port_dev)
return -EBUSY;
}

port = kzalloc(sizeof(struct team_port), GFP_KERNEL);
port = kzalloc(sizeof(struct team_port) + team->mode->port_priv_size,
GFP_KERNEL);
if (!port)
return -ENOMEM;

Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/if_team.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ struct team_port {
} orig;

struct rcu_head rcu;
long mode_priv[0];
};

struct team_mode_ops {
Expand Down Expand Up @@ -108,6 +109,7 @@ struct team_mode {
const char *kind;
struct module *owner;
size_t priv_size;
size_t port_priv_size;
const struct team_mode_ops *ops;
};

Expand Down

0 comments on commit 45cd608

Please sign in to comment.