From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [patch net 2/2] net: sched: fix static key imbalance in case of ingress/clsact_init error Date: Fri, 15 Dec 2017 15:44:57 -0500 (EST) Message-ID: <20171215.154457.1510272539253164372.davem@davemloft.net> References: <20171215114013.6425-1-jiri@resnulli.us> <20171215114013.6425-3-jiri@resnulli.us> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, jhs@mojatatu.com, xiyou.wangcong@gmail.com, mlxsw@mellanox.com, daniel@iogearbox.net To: jiri@resnulli.us Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:56682 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755751AbdLOUo6 (ORCPT ); Fri, 15 Dec 2017 15:44:58 -0500 In-Reply-To: <20171215114013.6425-3-jiri@resnulli.us> Sender: netdev-owner@vger.kernel.org List-ID: From: Jiri Pirko Date: Fri, 15 Dec 2017 12:40:13 +0100 > From: Jiri Pirko > > Move static key increments to the beginning of the init function > so they pair 1:1 with decrements in ingress/clsact_destroy, > which is called in case ingress/clsact_init fails. > > Fixes: 6529eaba33f0 ("net: sched: introduce tcf block infractructure") > Signed-off-by: Jiri Pirko Applied and queued up for -stable.