X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=net%2Fbluetooth%2Fsco.c;h=b0d487e2db206899576b26a62ed0f245673b339c;hb=76d39d0a1947fee4c29976e507fb93188eaa2b38;hp=cd887cdca426b68d7af1c58ea9e8e69cd74913e2;hpb=2a467d5f7d6bdc90c365db167a10022dd8351894;p=linux-2.6-omap-h63xx.git diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index cd887cdca42..b0d487e2db2 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c @@ -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;