summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-04-04 18:56:53 -0300
committerGustavo F. Padovan <padovan@profusion.mobi>2011-04-05 13:03:10 -0300
commite63a15ec0f25c0f97e8f6247b97ac9b30968b6b3 (patch)
tree753b6c99f7af2c278386f005c98c79e17b9405f3 /net
parent1322901da5094cecd9826ec3aaade83f6452cc45 (diff)
downloadop-kernel-dev-e63a15ec0f25c0f97e8f6247b97ac9b30968b6b3.zip
op-kernel-dev-e63a15ec0f25c0f97e8f6247b97ac9b30968b6b3.tar.gz
Bluetooth: Use GFP_KERNEL in user context
The allocation in mgmt_control() code are in user context and not locked by any spinlock, so it's not recommended the use of GFP_ATOMIC there. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index c322381..c304688 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -1581,7 +1581,7 @@ int mgmt_control(struct sock *sk, struct msghdr *msg, size_t msglen)
if (msglen < sizeof(*hdr))
return -EINVAL;
- buf = kmalloc(msglen, GFP_ATOMIC);
+ buf = kmalloc(msglen, GFP_KERNEL);
if (!buf)
return -ENOMEM;
OpenPOWER on IntegriCloud