diff options
author | Li RongQing <lirongqing@baidu.com> | 2019-02-25 03:43:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-26 23:50:22 +0100 |
commit | 3b40bf4e24d13a858b7e58687ed9580157bcf17e (patch) | |
tree | f432fb95bd9f0413fd5432af87fb8e9a9292a60a /net | |
parent | Merge branch 'tcp-cleanups' (diff) | |
download | linux-3b40bf4e24d13a858b7e58687ed9580157bcf17e.tar.xz linux-3b40bf4e24d13a858b7e58687ed9580157bcf17e.zip |
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 <zhangyu31@baidu.com>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/sch_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, }; |