X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fbluetooth%2Fsco.c;h=a324b009e34b7bc1b66a91ce9e3a5188169ec04c;hb=1bf1aacedcda23c75e70fa3394e1caa6d4b5ee49;hp=8270f05e3f1f27b0883020eede325df8d17154d0;hpb=0f43dd546d991ca260d8a72d07f617907c508de8;p=pandora-kernel.git diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index 8270f05e3f1f..a324b009e34b 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include @@ -403,8 +404,10 @@ static void sco_sock_init(struct sock *sk, struct sock *parent) { BT_DBG("sk %p", sk); - if (parent) + if (parent) { sk->sk_type = parent->sk_type; + security_sk_clone(parent, sk); + } } static struct proto sco_proto = {