[Bluetooth] Add locking for bt_proto array manipulation
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / bluetooth / hidp / sock.c
index 6242446aa270fafa94144567ffcedd070388a80e..407fba43c1b973cda01122be9cc3dce198c2b930 100644 (file)
@@ -256,7 +256,7 @@ static int hidp_sock_create(struct socket *sock, int protocol)
        if (sock->type != SOCK_RAW)
                return -ESOCKTNOSUPPORT;
 
-       sk = sk_alloc(PF_BLUETOOTH, GFP_KERNEL, &hidp_proto, 1);
+       sk = sk_alloc(PF_BLUETOOTH, GFP_ATOMIC, &hidp_proto, 1);
        if (!sk)
                return -ENOMEM;