]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/sched/sch_gred.c
net: Prevent invalid access to skb->prev in __qdisc_drop_all
[mirror_ubuntu-bionic-kernel.git] / net / sched / sch_gred.c
index bc30f9186ac67cd7b1c21d4d2b0035d3a6b886af..d3105ee8decfb0daf309ba07ac335e3df211880f 100644 (file)
@@ -411,7 +411,7 @@ static int gred_change(struct Qdisc *sch, struct nlattr *opt)
        if (tb[TCA_GRED_PARMS] == NULL && tb[TCA_GRED_STAB] == NULL) {
                if (tb[TCA_GRED_LIMIT] != NULL)
                        sch->limit = nla_get_u32(tb[TCA_GRED_LIMIT]);
-               return gred_change_table_def(sch, opt);
+               return gred_change_table_def(sch, tb[TCA_GRED_DPS]);
        }
 
        if (tb[TCA_GRED_PARMS] == NULL ||