]> git.dujemihanovic.xyz Git - linux.git/commit
net: sched: cls_flower: Undo tcf_bind_filter in case of an error
authorVictor Nogueira <victor@mojatatu.com>
Thu, 13 Jul 2023 18:05:14 +0000 (15:05 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2023 06:33:39 +0000 (07:33 +0100)
commitac177a330077f264664f56259038e121bb214bec
tree1ea462ff6731f23f4fa69e65005e81913ced5e95
parent26a22194927e8521e304ed75c2f38d8068d55fc7
net: sched: cls_flower: Undo tcf_bind_filter in case of an error

If TCA_FLOWER_CLASSID is specified in the netlink message, the code will
call tcf_bind_filter. However, if any error occurs after that, the code
should undo this by calling tcf_unbind_filter.

Fixes: 77b9900ef53a ("tc: introduce Flower classifier")
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_flower.c