]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: avoid writing on noop_qdisc
authorEric Dumazet <edumazet@google.com>
Tue, 9 Oct 2018 22:20:50 +0000 (15:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 05:49:16 +0000 (22:49 -0700)
commit17f7aea4bc1cdf817b37a1521d1ac3339eae007a
tree46b151fab4744224e104a4fc527295cd29834a5f
parentfbdd161fc2548b6b49a2ae896f6a86550470ed11
net: sched: avoid writing on noop_qdisc

While noop_qdisc.gso_skb and noop_qdisc.skb_bad_txq are not used
in other places, it seems not correct to overwrite their fields
in dev_init_scheduler_queue().

noop_qdisc is essentially a shared and read-only object, even if
it is not marked as const because of some implementation detail.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_generic.c