]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sched/sch_prio.c
drivers-edac: add Cell XDR memory types
[linux-2.6-omap-h63xx.git] / net / sched / sch_prio.c
index a4f932df86e93ffbc502d9983f1c7eeb8e938cdc..4aa2b45dad0a80232ed1d1d1c2fbabf33b19ec8f 100644 (file)
@@ -229,11 +229,14 @@ static int prio_tune(struct Qdisc *sch, struct nlattr *opt)
        struct prio_sched_data *q = qdisc_priv(sch);
        struct tc_prio_qopt *qopt;
        struct nlattr *tb[TCA_PRIO_MAX + 1];
+       int err;
        int i;
 
-       if (nla_parse_nested_compat(tb, TCA_PRIO_MAX, opt, NULL, qopt,
-                                   sizeof(*qopt)))
-               return -EINVAL;
+       err = nla_parse_nested_compat(tb, TCA_PRIO_MAX, opt, NULL, qopt,
+                                     sizeof(*qopt));
+       if (err < 0)
+               return err;
+
        q->bands = qopt->bands;
        /* If we're multiqueue, make sure the number of incoming bands
         * matches the number of queues on the device we're associating with.