]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/bluetooth/l2cap.c
[MIPS] cevt-gt641xx: Kill unnecessary include
[linux-2.6-omap-h63xx.git] / net / bluetooth / l2cap.c
index 34f8bf98bc0529b4d69f7c60ff6f739ed63077a3..a4849f2c1d81aff0287084ea5aff51a294442591 100644 (file)
@@ -62,7 +62,7 @@ static u32 l2cap_feat_mask = 0x0000;
 static const struct proto_ops l2cap_sock_ops;
 
 static struct bt_sock_list l2cap_sk_list = {
-       .lock = RW_LOCK_UNLOCKED
+       .lock = __RW_LOCK_UNLOCKED(l2cap_sk_list.lock)
 };
 
 static void __l2cap_sock_close(struct sock *sk, int reason);
@@ -1499,7 +1499,7 @@ static inline int l2cap_connect_req(struct l2cap_conn *conn, struct l2cap_cmd_hd
                goto response;
        }
 
-       sk = l2cap_sock_alloc(parent->sk_net, NULL, BTPROTO_L2CAP, GFP_ATOMIC);
+       sk = l2cap_sock_alloc(sock_net(parent), NULL, BTPROTO_L2CAP, GFP_ATOMIC);
        if (!sk)
                goto response;