From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [net 1/1] tipc: fix memory leak in tipc_accept_from_sock() Date: Tue, 05 Dec 2017 14:54:30 -0500 (EST) Message-ID: <20171205.145430.1769930310767064602.davem@davemloft.net> References: <1512421220-16773-1-git-send-email-jon.maloy@ericsson.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, mohan.krishna.ghanta.krishnamurthy@ericsson.com, tung.q.nguyen@dektech.com.au, hoang.h.le@dektech.com.au, canh.d.luu@dektech.com.au, ying.xue@windriver.com, tipc-discussion@lists.sourceforge.net To: jon.maloy@ericsson.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:39578 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751809AbdLETyc (ORCPT ); Tue, 5 Dec 2017 14:54:32 -0500 In-Reply-To: <1512421220-16773-1-git-send-email-jon.maloy@ericsson.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Jon Maloy Date: Mon, 4 Dec 2017 22:00:20 +0100 > When the function tipc_accept_from_sock() fails to create an instance of > struct tipc_subscriber it omits to free the already created instance of > struct tipc_conn instance before it returns. > > We fix that with this commit. > > Reported-by: David S. Miller > Signed-off-by: Jon Maloy Applied and queued up for -stable.