Bluetooth: Remove sk parameter from l2cap_chan_create()
[deliverable/linux.git] / net / bluetooth / l2cap_sock.c
index 29122ed28ea96965433fb6086756244d9eabd508..53e563f0172347bfb9c9d27df5a0c66309e60fa9 100644 (file)
@@ -1048,12 +1048,14 @@ static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, int p
        sk->sk_protocol = proto;
        sk->sk_state = BT_OPEN;
 
-       chan = l2cap_chan_create(sk);
+       chan = l2cap_chan_create();
        if (!chan) {
                l2cap_sock_kill(sk);
                return NULL;
        }
 
+       chan->sk = sk;
+
        l2cap_pi(sk)->chan = chan;
 
        return sk;
This page took 0.024328 seconds and 5 git commands to generate.