macvtap: slient sparse warnings
[cascardo/linux.git] / drivers / net / macvtap.c
index 992151c..edcbf1c 100644 (file)
@@ -429,7 +429,7 @@ static int macvtap_open(struct inode *inode, struct file *file)
        if (!q)
                goto out;
 
-       q->sock.wq = &q->wq;
+       RCU_INIT_POINTER(q->sock.wq, &q->wq);
        init_waitqueue_head(&q->wq.wait);
        q->sock.type = SOCK_RAW;
        q->sock.state = SS_CONNECTED;