Skip to contentSkip to conversation

cls_matchall: fix tcf_unbind_filter missing

PATCH In review Hangbin Liu 3 participants 3 messages Aug 14, 2018 – Aug 16, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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")
---
 net/sched/cls_matchall.c | 2 ++
 1 file changed, 2 insertions(+)
net/sched/cls_matchall.c +2 -0
index 47b207e..7ad65da 100644
@@ -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