Skip to content

Commit a1a8f7f

Browse files
roidayandavem330
authored andcommitted
net/sched: cls_flower: add missing unbind call when destroying flows
tcf_unbind was called in fl_delete but was missing in fl_destroy when force deleting flows. Fixes: 77b9900 ('tc: introduce Flower classifier') Signed-off-by: Roi Dayan <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4cb551a commit a1a8f7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/sched/cls_flower.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ static bool fl_destroy(struct tcf_proto *tp, bool force)
280280
list_for_each_entry_safe(f, next, &head->filters, list) {
281281
fl_hw_destroy_filter(tp, (unsigned long)f);
282282
list_del_rcu(&f->list);
283+
tcf_unbind_filter(tp, &f->res);
283284
call_rcu(&f->rcu, fl_destroy_filter);
284285
}
285286
RCU_INIT_POINTER(tp->root, NULL);

0 commit comments

Comments
 (0)