[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180115.134645.1508556387894986585.davem@davemloft.net>
Date: Mon, 15 Jan 2018 13:46:45 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: xiyou.wangcong@...il.com
Cc: netdev@...r.kernel.org, dvyukov@...gle.com, jon.maloy@...csson.com,
ying.xue@...driver.com
Subject: Re: [Patch net] tipc: fix a memory leak in tipc_nl_node_get_link()
From: Cong Wang <xiyou.wangcong@...il.com>
Date: Wed, 10 Jan 2018 12:50:25 -0800
> 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@...gle.com>
> Cc: Jon Maloy <jon.maloy@...csson.com>
> Cc: Ying Xue <ying.xue@...driver.com>
> Signed-off-by: Cong Wang <xiyou.wangcong@...il.com>
Applied, thanks.
Powered by blists - more mailing lists