Skip to content

Commit 9d85a6f

Browse files
Yajun Dengdavem330
authored andcommitted
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: 32a4f5e ("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>
1 parent 98c5b13 commit 9d85a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sched/cls_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2904,7 +2904,7 @@ static int tc_ctl_chain(struct sk_buff *skb, struct nlmsghdr *n,
29042904
break;
29052905
case RTM_GETCHAIN:
29062906
err = tc_chain_notify(chain, skb, n->nlmsg_seq,
2907-
n->nlmsg_seq, n->nlmsg_type, true);
2907+
n->nlmsg_flags, n->nlmsg_type, true);
29082908
if (err < 0)
29092909
NL_SET_ERR_MSG(extack, "Failed to send chain notify message");
29102910
break;

0 commit comments

Comments
 (0)