diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2018-01-10 12:50:25 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-15 13:45:50 -0500 |
commit | 59b36613e85fb16ebf9feaf914570879cd5c2a21 (patch) | |
tree | 9219f64c5110f0f7b4865420b154e649cca774e5 /net/netlink/af_netlink.c | |
parent | 749439bfac6e1a2932c582e2699f91d329658196 (diff) | |
download | linux-59b36613e85fb16ebf9feaf914570879cd5c2a21.tar.gz linux-59b36613e85fb16ebf9feaf914570879cd5c2a21.tar.bz2 linux-59b36613e85fb16ebf9feaf914570879cd5c2a21.zip |
tipc: fix a memory leak in tipc_nl_node_get_link()
When tipc_node_find_by_name() fails, the nlmsg is not
freed.
While on it, switch to a goto label to properly
free it.
Fixes: be9c086715c ("tipc: narrow down exposure of struct tipc_node")
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Jon Maloy <jon.maloy@ericsson.com>
Cc: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink/af_netlink.c')
0 files changed, 0 insertions, 0 deletions