net sched filters: fix filter handle ID in tfilter_notify_chain()
authorRoman Mashak <mrv@mojatatu.com>
Wed, 23 Nov 2016 01:57:04 +0000 (20:57 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Nov 2016 21:05:58 +0000 (16:05 -0500)
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>
net/sched/cls_api.c

index 8e93d4afe5ead0b0a983a1cb29627b517c2c8421..b05d4a2155b0b08ae7bb57c5bda2be2ee234679a 100644 (file)
@@ -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. */