cls_matchall: fix tcf_unbind_filter missing
Subsystems (3)
PATCH 1/1 cls_matchall: fix tcf_unbind_filter missing
Fix tcf_unbind_filter missing in cls_matchall as this will trigger WARN_ON() in cbq_destroy_class().
Fixes fd62d9f5c575f ("net/sched: matchall: Fix configuration race")
Reported-by Li Shuang <[email protected]>
Signed-off-by Hangbin Liu <[email protected]>
--- net/sched/cls_matchall.c | 2 ++ 1 file changed, 2 insertions(+)
net/sched/cls_matchall.c +2 -0
@@ -111,6 +111,8 @@ static void mall_destroy(struct tcf_proto *tp, struct netlink_ext_ack *extack)if (!head)return ; +tcf_unbind_filter (tp, &head->res); +if (!tc_skip_hw (head->flags))mall_destroy_hw_filter (tp, head, (unsigned long ) head, extack);
Signature · 1 line
2.5.5
Quoted 7 lines · Hangbin Liu
Fix
tcf_unbind_filtermissing incls_matchallas this will triggerWARN_ON()incbq_destroy_class().Fixes fd62d9f5c575f ("net/sched: matchall: Fix configuration race")Reported-by Li Shuang <[email protected]>Signed-off-by Hangbin Liu <[email protected]>
Acked-by Cong Wang <[email protected]>
David Miller
maintainerFrom: Hangbin Liu <[email protected]>
Date: Tue, 14 Aug 2018 17:28:26 +0800
Quoted 6 lines
Fix
tcf_unbind_filtermissing incls_matchallas this will triggerWARN_ON()incbq_destroy_class().Fixes fd62d9f5c575f ("net/sched: matchall: Fix configuration race")Reported-by Li Shuang <[email protected]>Signed-off-by Hangbin Liu <[email protected]>
Applied and queued up for -stable, thanks.