Skip to content

Commit eeda2c0

Browse files
Paolo Abenigregkh
authored andcommitted
net/sched: cls_flower: revert unintended changes
[ Upstream commit 1e01abe ] While applying the blamed commit 4ca07b9 ("net: mctp i2c: check length before marking flow active"), I unintentionally included unrelated and unacceptable changes. Revert them. Fixes: 4ca07b9 ("net: mctp i2c: check length before marking flow active") Reported-by: Jeremy Kerr <jk@codeconstruct.com.au> Closes: https://lore.kernel.org/netdev/bd8704fe0bd53e278add5cde4873256656623e2e.camel@codeconstruct.com.au/ Signed-off-by: Paolo Abeni <pabeni@redhat.com> Link: https://patch.msgid.link/043026a53ff84da88b17648c4b0d17f0331749cb.1777447863.git.pabeni@redhat.com Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent dcc6659 commit eeda2c0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

net/sched/cls_flower.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ static int __fl_delete(struct tcf_proto *tp, struct cls_fl_filter *f,
560560
struct netlink_ext_ack *extack)
561561
{
562562
struct cls_fl_head *head = fl_head_dereference(tp);
563-
struct fl_flow_mask *mask;
564563

565564
*last = false;
566565

@@ -577,12 +576,11 @@ static int __fl_delete(struct tcf_proto *tp, struct cls_fl_filter *f,
577576
list_del_rcu(&f->list);
578577
spin_unlock(&tp->lock);
579578

580-
mask = f->mask;
579+
*last = fl_mask_put(head, f->mask);
581580
if (!tc_skip_hw(f->flags))
582581
fl_hw_destroy_filter(tp, f, rtnl_held, extack);
583582
tcf_unbind_filter(tp, &f->res);
584583
__fl_put(f);
585-
*last = fl_mask_put(head, mask);
586584

587585
return 0;
588586
}

0 commit comments

Comments
 (0)