]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/sched/sch_ingress.c
net: sched: fix clsact init error path
[mirror_ubuntu-bionic-kernel.git] / net / sched / sch_ingress.c
index 5ecc38f35d4774fdfa402d9a4c4a0e655e1c91c2..5e1cd2e5df87c6dc30cdcb22dc5a1f8b4179a8ef 100644 (file)
@@ -190,7 +190,7 @@ static int clsact_init(struct Qdisc *sch, struct nlattr *opt)
 
        err = tcf_block_get_ext(&q->egress_block, sch, &q->egress_block_info);
        if (err)
-               goto err_egress_block_get;
+               return err;
 
        net_inc_ingress_queue();
        net_inc_egress_queue();
@@ -198,10 +198,6 @@ static int clsact_init(struct Qdisc *sch, struct nlattr *opt)
        sch->flags |= TCQ_F_CPUSTATS;
 
        return 0;
-
-err_egress_block_get:
-       tcf_block_put_ext(q->ingress_block, sch, &q->ingress_block_info);
-       return err;
 }
 
 static void clsact_destroy(struct Qdisc *sch)