diff options
author | Roman Mashak <mrv@mojatatu.com> | 2016-11-23 01:57:04 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-24 21:05:58 (GMT) |
commit | 19a8bb28d1c66670a2aebf9c78ec21c0b942f4b8 (patch) | |
tree | 27749fb0145caa1efb02835dda6e693acf6623a9 /net | |
parent | 76da8706d90d8641eeb9b8e579942ed80b6c0880 (diff) | |
download | linux-19a8bb28d1c66670a2aebf9c78ec21c0b942f4b8.tar.xz |
net sched filters: fix filter handle ID in tfilter_notify_chain()
Should pass valid filter handle, not the netlink flags.
Fixes: 30a391a13ab92 ("net sched filters: pass netlink message flags in event notification")
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reported-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 8e93d4a..b05d4a2 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -112,7 +112,7 @@ static void tfilter_notify_chain(struct net *net, struct sk_buff *oskb, for (it_chain = chain; (tp = rtnl_dereference(*it_chain)) != NULL; it_chain = &tp->next) - tfilter_notify(net, oskb, n, tp, n->nlmsg_flags, event, false); + tfilter_notify(net, oskb, n, tp, 0, event, false); } /* Select new prio value from the range, managed by kernel. */ |