aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-04-04 17:56:53 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-04-05 12:03:10 -0400
commite63a15ec0f25c0f97e8f6247b97ac9b30968b6b3 (patch)
tree753b6c99f7af2c278386f005c98c79e17b9405f3 /net/bluetooth/mgmt.c
parent1322901da5094cecd9826ec3aaade83f6452cc45 (diff)
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/bluetooth/mgmt.c')
-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 c32238163b7..c304688252b 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)
1581 if (msglen < sizeof(*hdr)) 1581 if (msglen < sizeof(*hdr))
1582 return -EINVAL; 1582 return -EINVAL;
1583 1583
1584 buf = kmalloc(msglen, GFP_ATOMIC); 1584 buf = kmalloc(msglen, GFP_KERNEL);
1585 if (!buf) 1585 if (!buf)
1586 return -ENOMEM; 1586 return -ENOMEM;
1587 1587