aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/sco.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/sco.c')
-rw-r--r--net/bluetooth/sco.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c
index 4322c833e748..6b6e59dc54cf 100644
--- a/net/bluetooth/sco.c
+++ b/net/bluetooth/sco.c
@@ -460,11 +460,11 @@ static struct proto sco_proto = {
460 .obj_size = sizeof(struct sco_pinfo) 460 .obj_size = sizeof(struct sco_pinfo)
461}; 461};
462 462
463static struct sock *sco_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio) 463static struct sock *sco_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio, int kern)
464{ 464{
465 struct sock *sk; 465 struct sock *sk;
466 466
467 sk = sk_alloc(net, PF_BLUETOOTH, prio, &sco_proto); 467 sk = sk_alloc(net, PF_BLUETOOTH, prio, &sco_proto, kern);
468 if (!sk) 468 if (!sk)
469 return NULL; 469 return NULL;
470 470
@@ -501,7 +501,7 @@ static int sco_sock_create(struct net *net, struct socket *sock, int protocol,
501 501
502 sock->ops = &sco_sock_ops; 502 sock->ops = &sco_sock_ops;
503 503
504 sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC); 504 sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
505 if (!sk) 505 if (!sk)
506 return -ENOMEM; 506 return -ENOMEM;
507 507
@@ -1026,7 +1026,7 @@ static void sco_conn_ready(struct sco_conn *conn)
1026 bh_lock_sock(parent); 1026 bh_lock_sock(parent);
1027 1027
1028 sk = sco_sock_alloc(sock_net(parent), NULL, 1028 sk = sco_sock_alloc(sock_net(parent), NULL,
1029 BTPROTO_SCO, GFP_ATOMIC); 1029 BTPROTO_SCO, GFP_ATOMIC, 0);
1030 if (!sk) { 1030 if (!sk) {
1031 bh_unlock_sock(parent); 1031 bh_unlock_sock(parent);
1032 sco_conn_unlock(conn); 1032 sco_conn_unlock(conn);