diff --git a/net/sched/sch_cbq.c b/net/sched/sch_cbq.c index 53d45e029c36d46b9e4f0d1005ef98c468fdd085..4a78fcf5d4f989a78f2ced9301e9bcd15232d7e2 100644 --- a/net/sched/sch_cbq.c +++ b/net/sched/sch_cbq.c @@ -1614,7 +1614,7 @@ cbq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **t err = tcf_block_get(&cl->block, &cl->filter_list, sch, extack); if (err) { kfree(cl); - return err; + goto failure; } if (tca[TCA_RATE]) {