diff options
author | Jiri Pirko <jpirko@redhat.com> | 2012-06-19 01:54:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-19 18:00:23 -0400 |
commit | 75db986a6b93dd93e543387720b88f350ce38d30 (patch) | |
tree | 11ed6031ea329e7ea98af0d37101fdbf2465e6af /drivers/net/team | |
parent | 0f1aad2b7f01d88782fbf4ab08b13a7d92b9b6b2 (diff) |
team: fix error path in team_nl_fill_options_get()
genlmsg_cancel() needs to be called in case nest fails
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index 7988ba099b94..82ded1820caf 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c | |||
@@ -1583,7 +1583,7 @@ static int team_nl_fill_options_get(struct sk_buff *skb, | |||
1583 | goto nla_put_failure; | 1583 | goto nla_put_failure; |
1584 | option_list = nla_nest_start(skb, TEAM_ATTR_LIST_OPTION); | 1584 | option_list = nla_nest_start(skb, TEAM_ATTR_LIST_OPTION); |
1585 | if (!option_list) | 1585 | if (!option_list) |
1586 | return -EMSGSIZE; | 1586 | goto nla_put_failure; |
1587 | 1587 | ||
1588 | list_for_each_entry(opt_inst, &team->option_inst_list, list) { | 1588 | list_for_each_entry(opt_inst, &team->option_inst_list, list) { |
1589 | struct nlattr *option_item; | 1589 | struct nlattr *option_item; |