From: Roman Mashak Date: Wed, 23 Nov 2016 01:57:04 +0000 (-0500) Subject: net sched filters: fix filter handle ID in tfilter_notify_chain() X-Git-Tag: Ubuntu-5.0.0-8.9~6026^2~13 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=19a8bb28d1c66670a2aebf9c78ec21c0b942f4b8;p=mirror_ubuntu-disco-kernel.git 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 Signed-off-by: Jamal Hadi Salim Reported-by: Cong Wang Acked-by: Daniel Borkmann Signed-off-by: David S. Miller --- diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 8e93d4afe5ea..b05d4a2155b0 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. */