Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3715263pxv; Mon, 26 Jul 2021 10:05:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyc/+u3+LXeNRGuze/zxC3//kWgG5ds25r6us270Ab/Yp99LsSqmPE2+Am+4tzvy95EDUZH X-Received: by 2002:a1c:7407:: with SMTP id p7mr17549244wmc.111.1627319104704; Mon, 26 Jul 2021 10:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627319104; cv=none; d=google.com; s=arc-20160816; b=o7qZawDJngQaQjI+8VmCBxnp0cyxJJ9OW6BG8AGVL5G3kz8Y2SItv4ihlJhXHF0gx2 MhBzKhgPO3PFJTmO5D4EjdpbTNTUq3wLleyFnpSnWpe/INaAGzg0FloSk21BD+jUoCNm PnZwp5mlBmFR4AcZTzgLB4rt9fGUjwS0q6U4MT+a5RKJZWsZdeWi1bW9pQLMyhiLTWMp fNn43t6A8eVIgx2UyKbh6mrUKaSLNP1M8LlcZ7o8BFTFANPn1QqqDd3uXWkqmVvTxS0R +2180DIiArM5LEuDgZcbAJ+eqW2034+ym/zj2m3adqaPzezo2jjVIHqwFiTlp3RiyUow 0nUA== 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=mCszwTNVpwu6Wqj8fsK17++7d2jPYVF3sQJsz7dH4Yo=; b=ns4UAArGGzGbIgTfsY60d6rZ7cnQIKPin9yx2U/pnQ3EuzOI4bh73+6OB4RNKATGfo e0QiFu3sK3Lfg84SyerCw3zWP6xLCq7nqpuBW/3jClh6BHf22VRHD0CzSVjbQ8G5we3X kKLtXJ0wzbCSp+8lstHWw5/rQ6XkYOikdlzNhZHRVKDzUnMPvk8AToNDm+lDtmTJqACk 9vLbC89GNCNzmjH1YfhjU+02OrebKqmVum/aaGslFplClN8/r7llJR+1NowvBBRFqWHx TUESxVf58zqKiN/b6XPIw9Et0oChPrGkscaLztlRu8XC662VhzDqOlEhNugtitYE6ibM 4x2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LtkgfL7Q; 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 s18si310638wri.80.2021.07.26.10.04.38; Mon, 26 Jul 2021 10:05:04 -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=LtkgfL7Q; 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 S237773AbhGZPmR (ORCPT + 99 others); Mon, 26 Jul 2021 11:42:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:38976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236382AbhGZPXo (ORCPT ); Mon, 26 Jul 2021 11:23:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2AD3760F91; Mon, 26 Jul 2021 16:04:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627315452; bh=5zAC2SiAbvB+JHs1kKaT/tSGrbYte79jXvVGsQVyvMQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LtkgfL7Q7x4Lo6Dc674QHzh0+uJJFZUygvnDL3aI2mvy3GHZwl9LZ2su5TALWDSXX D6hB+JrZhyi5/uzI2nyZhy1G4ijoj+nmdwi86X7Id/wE+vTCm7bOnrYY682hDPkHyx +MQulvOkOUiBSinB4mECax/H/uLresRTPVN3stwA= 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.10 101/167] net: sched: cls_api: Fix the the wrong parameter Date: Mon, 26 Jul 2021 17:38:54 +0200 Message-Id: <20210726153842.783633404@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153839.371771838@linuxfoundation.org> References: <20210726153839.371771838@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 30090794b791..31ac76a9189e 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -2905,7 +2905,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