Re: [PATCH net] team: fix memory leaks

2017-04-25 Thread David Miller
From: Pan Bian Date: Mon, 24 Apr 2017 18:29:16 +0800 > In functions team_nl_send_port_list_get() and > team_nl_send_options_get(), pointer skb keeps the return value of > nlmsg_new(). When the call to genlmsg_put() fails, the memory is not > freed(). This will result in

Re: [PATCH net] team: fix memory leaks

2017-04-24 Thread Jiri Pirko
Mon, Apr 24, 2017 at 12:29:16PM CEST, bianpan2...@163.com wrote: >In functions team_nl_send_port_list_get() and >team_nl_send_options_get(), pointer skb keeps the return value of >nlmsg_new(). When the call to genlmsg_put() fails, the memory is not >freed(). This will result in memory leak bugs. >

[PATCH net] team: fix memory leaks

2017-04-24 Thread Pan Bian
In functions team_nl_send_port_list_get() and team_nl_send_options_get(), pointer skb keeps the return value of nlmsg_new(). When the call to genlmsg_put() fails, the memory is not freed(). This will result in memory leak bugs. Fixes: 9b00cf2d1024 ("team: implement multipart netlink messages for