From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] net/sched: fix refcnt leak in the error path of tcf_vlan_init() Date: Wed, 16 May 2018 14:42:14 -0400 (EDT) Message-ID: <20180516.144214.915731773204013502.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, jiri@resnulli.us, jhs@mojatatu.com, mrv@mojatatu.com To: dcaratti@redhat.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:43852 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835AbeEPSmP (ORCPT ); Wed, 16 May 2018 14:42:15 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Davide Caratti Date: Wed, 16 May 2018 12:54:29 +0200 > Similarly to what was done with commit a52956dfc503 ("net sched actions: > fix refcnt leak in skbmod"), fix the error path of tcf_vlan_init() to avoid > refcnt leaks when wrong value of TCA_VLAN_PUSH_VLAN_PROTOCOL is given. > > Fixes: 5026c9b1bafc ("net sched: vlan action fix late binding") > CC: Roman Mashak > Signed-off-by: Davide Caratti Applied and queued up for -stable, thanks.