linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: Use GFP_KERNEL in read_index_list
@ 2012-08-31  7:05 Szymon Janc
  2012-08-31 16:11 ` Marcel Holtmann
  2012-08-31 17:54 ` Gustavo Padovan
  0 siblings, 2 replies; 6+ messages in thread
From: Szymon Janc @ 2012-08-31  7:05 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

read_index_list is executed by user thread running in kernel-mode
thus is allowed to sleep.

Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
---
 net/bluetooth/mgmt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index a3329cb..7b1a5c8 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -340,7 +340,7 @@ static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data,
 	}
 
 	rp_len = sizeof(*rp) + (2 * count);
-	rp = kmalloc(rp_len, GFP_ATOMIC);
+	rp = kmalloc(rp_len, GFP_KERNEL);
 	if (!rp) {
 		read_unlock(&hci_dev_list_lock);
 		return -ENOMEM;
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-09-03 13:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-31  7:05 [PATCH] Bluetooth: Use GFP_KERNEL in read_index_list Szymon Janc
2012-08-31 16:11 ` Marcel Holtmann
2012-08-31 17:54 ` Gustavo Padovan
2012-09-03 12:34   ` Andrei Emeltchenko
2012-09-03 12:49     ` Szymon Janc
2012-09-03 13:07       ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).