From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBBA13FBEAB; Wed, 20 May 2026 18:25:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779301539; cv=none; b=rJUkirKSNeeAmLYm3XYwepoVwv9q7iH4YIUJ59HHjxvUmBe04S5lI/1kj1zbDXuN6c+AQDHl7+XcK7+8t5Kzt7CvkoedIZ1OEaUzA2lYNJ9KotrN7VFfrY9wMEdLIQ4rKEJhuN8Rs8YssZnASw+D7qVKfqEOcvgP9j7Utv31vys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779301539; c=relaxed/simple; bh=kYBC+P1CupP3GutbHnKY/ll2AzFDXGFzGQTzb50sOiI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=o1eqpk+Oe1mQ2bmspQyCXOVUVlRBS9I7QEVK2X8tM5kKN+FRMK43FV6BKyXpGPjjjazEnKmkBDD/Jy3/Ka7UO2yrIEPA6UJ+qIwCfpfBJrotU3GwrBiAmUOFlQwwo5UDVrTDy4J15XCWvDwd2wsn+/GX2NRA2rhvjb4m+pHlZe8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=k15Uh5Aj; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="k15Uh5Aj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D6D61F000E9; Wed, 20 May 2026 18:25:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779301538; bh=ILgk1bCFP5g0A+Jxvn3SgXGT8eeHWyXQ7b0W3XEAPvw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=k15Uh5Aj042uFfX58CBIL81sZUIE55ukzH76NyF10+KozS6etJMZaUJPQpHJp3KFD H6VViygPor+dztMdmeUl2UM2v4GDD9loZ7mk5uffla1MoH4l896Sy9Ied2/q3NZuZJ FLd+SEasggoDxvAmzvJOMi3uUnupN4PCTHf4paig= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jeremy Kerr , Paolo Abeni , Sasha Levin Subject: [PATCH 6.12 593/666] net/sched: cls_flower: revert unintended changes Date: Wed, 20 May 2026 18:23:24 +0200 Message-ID: <20260520162124.117127973@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162111.222830634@linuxfoundation.org> References: <20260520162111.222830634@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Paolo Abeni [ Upstream commit 1e01abec856593e02cd69fd95b784c10dd46880c ] While applying the blamed commit 4ca07b9239bd ("net: mctp i2c: check length before marking flow active"), I unintentionally included unrelated and unacceptable changes. Revert them. Fixes: 4ca07b9239bd ("net: mctp i2c: check length before marking flow active") Reported-by: Jeremy Kerr Closes: https://lore.kernel.org/netdev/bd8704fe0bd53e278add5cde4873256656623e2e.camel@codeconstruct.com.au/ Signed-off-by: Paolo Abeni Link: https://patch.msgid.link/043026a53ff84da88b17648c4b0d17f0331749cb.1777447863.git.pabeni@redhat.com Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- net/sched/cls_flower.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/sched/cls_flower.c b/net/sched/cls_flower.c index f3af0ac892a86..099ff6a3e1f51 100644 --- a/net/sched/cls_flower.c +++ b/net/sched/cls_flower.c @@ -560,7 +560,6 @@ static int __fl_delete(struct tcf_proto *tp, struct cls_fl_filter *f, struct netlink_ext_ack *extack) { struct cls_fl_head *head = fl_head_dereference(tp); - struct fl_flow_mask *mask; *last = false; @@ -577,12 +576,11 @@ static int __fl_delete(struct tcf_proto *tp, struct cls_fl_filter *f, list_del_rcu(&f->list); spin_unlock(&tp->lock); - mask = f->mask; + *last = fl_mask_put(head, f->mask); if (!tc_skip_hw(f->flags)) fl_hw_destroy_filter(tp, f, rtnl_held, extack); tcf_unbind_filter(tp, &f->res); __fl_put(f); - *last = fl_mask_put(head, mask); return 0; } -- 2.53.0