summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorYajun Deng <yajun.deng@linux.dev>2021-07-22 11:23:43 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-28 11:13:49 +0200
commitd682390655b388f7eb69add0006a4fce9cc33b3a (patch)
tree643d5de689e94a3d3cb2ad31e0c99ea07dd6ee98 /net
parent50b57223da67653c61e405d0a7592355cfe4585e (diff)
downloadlinux-stable-d682390655b388f7eb69add0006a4fce9cc33b3a.tar.gz
linux-stable-d682390655b388f7eb69add0006a4fce9cc33b3a.tar.bz2
linux-stable-d682390655b388f7eb69add0006a4fce9cc33b3a.zip
net: sched: cls_api: Fix the the wrong parameter
[ 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>
Diffstat (limited to 'net')
-rw-r--r--net/sched/cls_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 184c20b86393..4413aa8d4e82 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -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;