diff options
author | Yajun Deng <yajun.deng@linux.dev> | 2021-07-22 11:23:43 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-28 14:35:41 +0200 |
commit | 9e0373945ed63615689b1982e60044d2c41b3e5d (patch) | |
tree | d98384f9fdfff5bd529ad9eca5b1e2bc51bc9745 /net | |
parent | c8ebf135c1996e60a28be269e6fdaf9b46e1ff99 (diff) | |
download | linux-stable-9e0373945ed63615689b1982e60044d2c41b3e5d.tar.gz linux-stable-9e0373945ed63615689b1982e60044d2c41b3e5d.tar.bz2 linux-stable-9e0373945ed63615689b1982e60044d2c41b3e5d.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |