net: Use RCU_INIT_POINTER() to set sk_wq
authorLi RongQing <lirongqing@baidu.com>
Fri, 22 Feb 2019 09:08:22 +0000 (17:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Feb 2019 20:37:23 +0000 (12:37 -0800)
commitc2f26e8f8788dbd911692d983a3ece83d7d66fbb
tree881457ec92c33eb7d5f3d61d94a5b84975d98bff
parentb6a4119d9d01633d78409fed457fbe840c757f79
net: Use RCU_INIT_POINTER() to set sk_wq

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>
net/core/sock.c