From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [Patch net v2] tipc: fix a null pointer deref on error path Date: Tue, 05 Dec 2017 14:53:38 -0500 (EST) Message-ID: <20171205.145338.205160935964030137.davem@davemloft.net> References: <20171204183143.7395-1-xiyou.wangcong@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net, jon.maloy@ericsson.com, ying.xue@windriver.com To: xiyou.wangcong@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:39518 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752312AbdLETxl (ORCPT ); Tue, 5 Dec 2017 14:53:41 -0500 In-Reply-To: <20171204183143.7395-1-xiyou.wangcong@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Cong Wang Date: Mon, 4 Dec 2017 10:31:43 -0800 > In tipc_topsrv_kern_subscr() when s->tipc_conn_new() fails > we call tipc_close_conn() to clean up, but in this case > calling conn_put() is just enough. > > This fixes the folllowing crash: ... > Fixes: 14c04493cb77 ("tipc: add ability to order and receive topology events in driver") > Reported-by: syzbot > Cc: Jon Maloy > Cc: Ying Xue > Signed-off-by: Cong Wang Applied and queued up for -stable.