mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 14:19:16 +00:00
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>
This commit is contained in:
parent
7b2464d976
commit
3b40bf4e24
1 changed files with 1 additions and 1 deletions
|
@ -559,7 +559,7 @@ struct Qdisc_ops noop_qdisc_ops __read_mostly = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct netdev_queue noop_netdev_queue = {
|
static struct netdev_queue noop_netdev_queue = {
|
||||||
.qdisc = &noop_qdisc,
|
RCU_POINTER_INITIALIZER(qdisc, &noop_qdisc),
|
||||||
.qdisc_sleeping = &noop_qdisc,
|
.qdisc_sleeping = &noop_qdisc,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue