Commit 75db986a authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller

team: fix error path in team_nl_fill_options_get()

genlmsg_cancel() needs to be called in case nest fails
Signed-off-by: default avatarJiri Pirko <jpirko@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0f1aad2b
......@@ -1583,7 +1583,7 @@ static int team_nl_fill_options_get(struct sk_buff *skb,
goto nla_put_failure;
option_list = nla_nest_start(skb, TEAM_ATTR_LIST_OPTION);
if (!option_list)
return -EMSGSIZE;
goto nla_put_failure;
list_for_each_entry(opt_inst, &team->option_inst_list, list) {
struct nlattr *option_item;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment