projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76da870
)
net sched filters: fix filter handle ID in tfilter_notify_chain()
author
Roman Mashak
<
[email protected]
>
Wed, 23 Nov 2016 01:57:04 +0000
(20:57 -0500)
committer
David S. Miller
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Jamal Hadi Salim <
[email protected]
>
Reported-by: Cong Wang <
[email protected]
>
Acked-by: Daniel Borkmann <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sched/cls_api.c
patch
|
blob
|
history
diff --git
a/net/sched/cls_api.c
b/net/sched/cls_api.c
index 8e93d4afe5ead0b0a983a1cb29627b517c2c8421..b05d4a2155b0b08ae7bb57c5bda2be2ee234679a 100644
(file)
--- 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. */