Commit a1a8f7fe authored by Roi Dayan's avatar Roi Dayan Committed by David S. Miller
Browse files

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: 77b9900e

 ('tc: introduce Flower classifier')
Signed-off-by: default avatarRoi Dayan <>
Reviewed-by: default avatarJiri Pirko <>
Signed-off-by: default avatarDavid S. Miller <>
parent 4cb551a1
......@@ -280,6 +280,7 @@ static bool fl_destroy(struct tcf_proto *tp, bool force)
list_for_each_entry_safe(f, next, &head->filters, list) {
fl_hw_destroy_filter(tp, (unsigned long)f);
tcf_unbind_filter(tp, &f->res);
call_rcu(&f->rcu, fl_destroy_filter);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment