From: Li RongQing Date: Mon, 25 Feb 2019 02:43:06 +0000 (+0800) Subject: net: Use RCU_POINTER_INITIALIZER() to init static variable X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3b40bf4e24d13a858b7e58687ed9580157bcf17e;p=openwrt%2Fstaging%2Fblogic.git net: Use RCU_POINTER_INITIALIZER() to init static variable This pointer is RCU protected, so proper primitives should be used. Signed-off-by: Zhang Yu Signed-off-by: Li RongQing Signed-off-by: David S. Miller --- diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 38e5add14fab..7bcee8b8f803 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c @@ -559,7 +559,7 @@ struct Qdisc_ops noop_qdisc_ops __read_mostly = { }; static struct netdev_queue noop_netdev_queue = { - .qdisc = &noop_qdisc, + RCU_POINTER_INITIALIZER(qdisc, &noop_qdisc), .qdisc_sleeping = &noop_qdisc, };