]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/bluetooth/sco.c
kernel-doc: detect/prevent duplicate doc section names
[linux-2.6-omap-h63xx.git] / net / bluetooth / sco.c
index b91d3c81a73c58981ab105dd952bcafc65df35c6..b0d487e2db206899576b26a62ed0f245673b339c 100644 (file)
@@ -58,7 +58,7 @@
 static const struct proto_ops sco_sock_ops;
 
 static struct bt_sock_list sco_sk_list = {
-       .lock = RW_LOCK_UNLOCKED
+       .lock = __RW_LOCK_UNLOCKED(sco_sk_list.lock)
 };
 
 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent);
@@ -803,7 +803,7 @@ static void sco_conn_ready(struct sco_conn *conn)
 
                bh_lock_sock(parent);
 
-               sk = sco_sock_alloc(parent->sk_net, NULL, BTPROTO_SCO, GFP_ATOMIC);
+               sk = sco_sock_alloc(sock_net(parent), NULL, BTPROTO_SCO, GFP_ATOMIC);
                if (!sk) {
                        bh_unlock_sock(parent);
                        goto done;