]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up some 4.14 networking patches to build properly
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Jan 2020 08:39:09 +0000 (09:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Jan 2020 08:39:09 +0000 (09:39 +0100)
queue-4.14/net-sch_prio-when-ungrafting-replace-with-fifo.patch
queue-4.14/pkt_sched-fq-do-not-accept-silly-tca_fq_quantum.patch

index 7202b8eeefd9e85ac811b479735f52a667821e01..579503ab74cdb9e61c207643beebfc0ee1a030dd 100644 (file)
@@ -37,7 +37,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 -              new = &noop_qdisc;
 +      if (!new) {
 +              new = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops,
-+                                      TC_H_MAKE(sch->handle, arg), extack);
++                                      TC_H_MAKE(sch->handle, arg));
 +              if (!new)
 +                      new = &noop_qdisc;
 +              else
index 8049d83d956d43ca9ced8b50e4c1509a90447886..afb8864405c6aa2c8aa2699c7e7ddab4f2f62b3d 100644 (file)
@@ -30,23 +30,17 @@ Reported-by: syzbot+dc9071cc5a85950bdfce@syzkaller.appspotmail.com
 Signed-off-by: David S. Miller <davem@davemloft.net>
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 ---
- net/sched/sch_fq.c |    6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
+ net/sched/sch_fq.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
 
 --- a/net/sched/sch_fq.c
 +++ b/net/sched/sch_fq.c
-@@ -734,10 +734,12 @@ static int fq_change(struct Qdisc *sch,
+@@ -734,7 +734,7 @@ static int fq_change(struct Qdisc *sch,
        if (tb[TCA_FQ_QUANTUM]) {
                u32 quantum = nla_get_u32(tb[TCA_FQ_QUANTUM]);
  
 -              if (quantum > 0)
-+              if (quantum > 0 && quantum <= (1 << 20)) {
++              if (quantum > 0 && quantum <= (1 << 20))
                        q->quantum = quantum;
--              else
-+              } else {
-+                      NL_SET_ERR_MSG_MOD(extack, "invalid quantum");
+               else
                        err = -EINVAL;
-+              }
-       }
-       if (tb[TCA_FQ_INITIAL_QUANTUM])