Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277906
b: refs/heads/master
c: f8a15af
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Nov 18, 2011
1 parent 8970a78 commit 10799b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 2bba19fff8d09bf19df5d5e2de7188d65de67c3e
refs/heads/master: f8a15af093b19b86d56933c8757cee298d0f32a8
8 changes: 2 additions & 6 deletions trunk/drivers/net/team/team.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,15 @@ int team_options_register(struct team *team,
if (!dst_opts)
return -ENOMEM;
for (i = 0; i < option_count; i++, option++) {
struct team_option *dst_opt;

if (__team_find_option(team, option->name)) {
err = -EEXIST;
goto rollback;
}
dst_opt = kmalloc(sizeof(*option), GFP_KERNEL);
if (!dst_opt) {
dst_opts[i] = kmemdup(option, sizeof(*option), GFP_KERNEL);
if (!dst_opts[i]) {
err = -ENOMEM;
goto rollback;
}
memcpy(dst_opt, option, sizeof(*option));
dst_opts[i] = dst_opt;
}

for (i = 0; i < option_count; i++)
Expand Down

0 comments on commit 10799b4

Please sign in to comment.