net: sched: cls_matchall: Undo tcf_bind_filter in case of failure after mall_set_parms
authorVictor Nogueira <victor@mojatatu.com>
Thu, 13 Jul 2023 18:05:10 +0000 (15:05 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2023 06:33:38 +0000 (07:33 +0100)
commitb3d0e0489430735e2e7626aa37e6462cdd136e9d
tree0c03a8cc52429fa29a7777b2a6ae6750ddcbfe11
parent0dd1805fe498e0cf64f68e451a8baff7e64494ec
net: sched: cls_matchall: Undo tcf_bind_filter in case of failure after mall_set_parms

In case an error occurred after mall_set_parms executed successfully, we
must undo the tcf_bind_filter call it issues.

Fix that by calling tcf_unbind_filter in err_replace_hw_filter label.

Fixes: ec2507d2a306 ("net/sched: cls_matchall: Fix error path")
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Pedro Tammela <pctammela@mojatatu.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_matchall.c