From: Yajun Deng Date: Thu, 22 Jul 2021 03:23:43 +0000 (+0800) Subject: net: sched: cls_api: Fix the the wrong parameter X-Git-Tag: v5.14-rc3~30^2~1 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=9d85a6f44bd5585761947f40f7821c9cd78a1bbe;p=linux-2.6-block.git net: sched: cls_api: Fix the the wrong parameter 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 --- diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index d73b5c5514a9..e3e79e9bd706 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -2904,7 +2904,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;