sco.c (c1f3ee120bb61045b1c0a3ead620d1d65af47130) | sco.c (3b1e0a655f8eba44ab1ee2a1068d169ccfb853b9) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 789 unchanged lines hidden (view full) --- 798 bh_unlock_sock(sk); 799 } else { 800 parent = sco_get_sock_listen(conn->src); 801 if (!parent) 802 goto done; 803 804 bh_lock_sock(parent); 805 | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 789 unchanged lines hidden (view full) --- 798 bh_unlock_sock(sk); 799 } else { 800 parent = sco_get_sock_listen(conn->src); 801 if (!parent) 802 goto done; 803 804 bh_lock_sock(parent); 805 |
806 sk = sco_sock_alloc(parent->sk_net, NULL, BTPROTO_SCO, GFP_ATOMIC); | 806 sk = sco_sock_alloc(sock_net(parent), NULL, BTPROTO_SCO, GFP_ATOMIC); |
807 if (!sk) { 808 bh_unlock_sock(parent); 809 goto done; 810 } 811 812 sco_sock_init(sk, parent); 813 814 bacpy(&bt_sk(sk)->src, conn->src); --- 187 unchanged lines hidden --- | 807 if (!sk) { 808 bh_unlock_sock(parent); 809 goto done; 810 } 811 812 sco_sock_init(sk, parent); 813 814 bacpy(&bt_sk(sk)->src, conn->src); --- 187 unchanged lines hidden --- |