]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
net: sched: cls_api: Fix the the wrong parameter
authorYajun Deng <yajun.deng@linux.dev>
Thu, 22 Jul 2021 03:23:43 +0000 (11:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jul 2021 09:13:49 +0000 (11:13 +0200)
[ 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 <yajun.deng@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sched/cls_api.c

index 184c20b86393b4ae68322f21c8ac87cd9182df3b..4413aa8d4e82982e23083787ede98912f0cd4494 100644 (file)
@@ -1918,7 +1918,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;