Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3681100pxv; Mon, 26 Jul 2021 09:16:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSMiZuY6SZb3pdpg5wtYQRMJ1hRezS1X9OvutUYrTB3A9RZsg6hlRNSEvFj6aIL1VSqsUc X-Received: by 2002:a17:906:134a:: with SMTP id x10mr4394408ejb.70.1627316177486; Mon, 26 Jul 2021 09:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627316177; cv=none; d=google.com; s=arc-20160816; b=qUcXKCVyWvaEv9hZpmWwWSFkIBEAeA2KHh95cX3eOZBpc215RM10ebmQj+Rc3jIgoQ DsuoknPsbLQEmZmeQ+GbFvlxFkFC5OPZdIbW9+oiX4DPRPhKspRMkBFG28ztqtnP/gma mZCDkLQBBeXUCk/JKBWWxwLgkrkna+UaptodfTENHE6enL4bR1qUkfHFk3EdzNfF3V/y zVN844RZo48hJBU101JpsZokTAk/CXM8J7MDh8wCaYgngS9G5LJHgx9yTktJwD0tkS7L tmG3ZAjkW1rN44T6SC6mEUdXSKaCn5ysZTS053cM/R0Z/emjgrnTLyS7vuQPWW1bqjwy Dg1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TS0eXsME8MvgSY1YQrbQjXK9DL9/iMpjvcWOcXOl0WM=; b=ThirMYp5t55HfSS4X/slg8LbCkMYaxbtAwFC3Wq6uPZLz5lNePXONQSCIDgnRAtuJp iqOBJf41uhctYQiSrODWy2cxKBxX/dN/+qn8RdeYgji5ctb82qONdyj/vCYs2hjB632p L0XGDn+vqW5vvO3nL3e1huWX2bJIyS/IJYYX92fIjP2OUkOVcCXE+jV3sykwq4jR+4qJ qx5Otf3GlNtfLAUoA6XwPRIF8KpqvRpnbXPDZ2w3DKuRyoOKOFgCPlPCTSXT0rgaW0XV Klsm8b2k661LETL0eBEo1Gt/k7rCu1gMDVSwoWaF6ez3PQVZjnPvI7Ac6wPRxbVWYl4I 1hQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NP3THL34; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si326148edt.268.2021.07.26.09.15.53; Mon, 26 Jul 2021 09:16:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NP3THL34; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234498AbhGZPdn (ORCPT + 99 others); Mon, 26 Jul 2021 11:33:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:60008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236306AbhGZPTD (ORCPT ); Mon, 26 Jul 2021 11:19:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7EEA560F38; Mon, 26 Jul 2021 15:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627315172; bh=cMqobNkiUHw1xhJ9A+LSAIYS4ZmkK8RO6EPmpiU8ZXY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NP3THL34shi3ntqxJMjUwXFUPFJmRlDs8mHLU02MH5n9ctVwJaO2M0VnrKwVHzTWs R3cA5Mi4zgiT/qUcUo4E60lgyTR9SEw/G56efk2J6v7WXEbSNCEoeTgXLZM/KOxd/t kcNPWfYAQcuOL8IfTmMQ/knchp+G/NPzxkiC6Eoc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yajun Deng , "David S. Miller" , Sasha Levin Subject: [PATCH 5.4 066/108] net: sched: cls_api: Fix the the wrong parameter Date: Mon, 26 Jul 2021 17:39:07 +0200 Message-Id: <20210726153833.807839232@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153831.696295003@linuxfoundation.org> References: <20210726153831.696295003@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yajun Deng [ Upstream commit 9d85a6f44bd5585761947f40f7821c9cd78a1bbe ] The 4th parameter in tc_chain_notify() should be flags rather than seq. Let's change it back correctly. Fixes: 32a4f5ecd738 ("net: sched: introduce chain object to uapi") Signed-off-by: Yajun Deng Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/sched/cls_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 83e5a8aa2fb1..7f20fd37e01e 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -2866,7 +2866,7 @@ replay: break; case RTM_GETCHAIN: err = tc_chain_notify(chain, skb, n->nlmsg_seq, - n->nlmsg_seq, n->nlmsg_type, true); + n->nlmsg_flags, n->nlmsg_type, true); if (err < 0) NL_SET_ERR_MSG(extack, "Failed to send chain notify message"); break; -- 2.30.2