Re: [PATCH 2/2] net: team: fix memory leak in team_nl_send_options_get

2017-04-24 Thread Jiri Pirko
] -- [...]' Please look up the commit that introduces the issue. Also no newline in between "fixes" and "signed off". Also. The subject should be: [PATCH net 2/2] team: fix memory leak in team_nl_send_options_get You can see this right away if you look in the mailing list ar

[PATCH 2/2] net: team: fix memory leak in team_nl_send_options_get

2017-04-24 Thread Pan Bian
In function team_nl_send_options_get(), pointer skb keeps the return value of function nlmsg_new(). When the call to genlmsg_put() fails, the control flow directly returns and does not free skb. This will result in a memory leak bug. This patch fixes it. Fixes: 8ea7fd0d8792 ("team: fix memory