From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shards.monkeyblade.net ([184.105.139.130]:49998 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752690AbeCQXxt (ORCPT ); Sat, 17 Mar 2018 19:53:49 -0400 Date: Sat, 17 Mar 2018 19:53:47 -0400 (EDT) Message-Id: <20180317.195347.700048144799797026.davem@davemloft.net> To: dcaratti@redhat.com Cc: xiyou.wangcong@gmail.com, jiri@resnulli.us, mrv@mojatatu.com, kurup.manish@gmail.com, netdev@vger.kernel.org Subject: Re: [PATCH net 0/5] net/sched: fix NULL dereference in the error path of .init() From: David Miller In-Reply-To: References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: From: Davide Caratti Date: Fri, 16 Mar 2018 00:00:52 +0100 > with several TC actions it's possible to see NULL pointer dereference, > when the .init() function calls tcf_idr_alloc(), fails at some point and > then calls tcf_idr_release(): this series fixes all them introducing > non-NULL tests in the .cleanup() function. Series applied and queued up for -stable, thank you.