Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b40bf4e authored by Li RongQing's avatar Li RongQing Committed by David S. Miller
Browse files

net: Use RCU_POINTER_INITIALIZER() to init static variable



This pointer is RCU protected, so proper primitives should be used.

Signed-off-by: default avatarZhang Yu <zhangyu31@baidu.com>
Signed-off-by: default avatarLi RongQing <lirongqing@baidu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7b2464d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
};