Commit 4212115
team: fix memory leaks
[ Upstream commit 72ec0bc64b9a5d8e0efcb717abfc757746b101b7 ]
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: 9b00cf2 ("team: implement multipart netlink messages for options transfers")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent fa63895 commit 4212115
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2343 | 2343 | | |
2344 | 2344 | | |
2345 | 2345 | | |
2346 | | - | |
| 2346 | + | |
| 2347 | + | |
2347 | 2348 | | |
| 2349 | + | |
2348 | 2350 | | |
2349 | 2351 | | |
2350 | 2352 | | |
| |||
2611 | 2613 | | |
2612 | 2614 | | |
2613 | 2615 | | |
2614 | | - | |
| 2616 | + | |
| 2617 | + | |
2615 | 2618 | | |
| 2619 | + | |
2616 | 2620 | | |
2617 | 2621 | | |
2618 | 2622 | | |
| |||
0 commit comments