From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] tipc: fix error handling in tipc_udp_enable() Date: Tue, 27 Mar 2018 10:50:46 -0400 (EDT) Message-ID: <20180327.105046.391878908613679018.davem@davemloft.net> References: <1522074764-22678-1-git-send-email-weiyongjun1@huawei.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: jon.maloy@ericsson.com, ying.xue@windriver.com, netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net, kernel-janitors@vger.kernel.org To: weiyongjun1@huawei.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:40814 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752125AbeC0Ous (ORCPT ); Tue, 27 Mar 2018 10:50:48 -0400 In-Reply-To: <1522074764-22678-1-git-send-email-weiyongjun1@huawei.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Wei Yongjun Date: Mon, 26 Mar 2018 14:32:44 +0000 > Release alloced resource before return from the error handling > case in tipc_udp_enable(), otherwise will cause memory leak. > > Fixes: 52dfae5c85a4 ("tipc: obtain node identity from interface by default") > Signed-off-by: Wei Yongjun Applied.