linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Bluetooth: Use GFP_KERNEL in hci_conn_add()
@ 2012-01-30 12:22 Andre Guedes
  2012-01-30 12:22 ` [PATCH 2/2] Bluetooth: Use GFP_KERNEL in hci_chan_create() Andre Guedes
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Andre Guedes @ 2012-01-30 12:22 UTC (permalink / raw)
  To: linux-bluetooth

This function is called in process context only, so it should use
GFP_KERNEL to allocate memory.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
---
 net/bluetooth/hci_conn.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index eae7a53..9ec7b8e 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -373,7 +373,7 @@ struct hci_conn *hci_conn_add(struct hci_dev *hdev, int type, bdaddr_t *dst)
 
 	BT_DBG("%s dst %s", hdev->name, batostr(dst));
 
-	conn = kzalloc(sizeof(struct hci_conn), GFP_ATOMIC);
+	conn = kzalloc(sizeof(struct hci_conn), GFP_KERNEL);
 	if (!conn)
 		return NULL;
 
-- 
1.7.8.4


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

end of thread, other threads:[~2012-01-30 19:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-30 12:22 [PATCH 1/2] Bluetooth: Use GFP_KERNEL in hci_conn_add() Andre Guedes
2012-01-30 12:22 ` [PATCH 2/2] Bluetooth: Use GFP_KERNEL in hci_chan_create() Andre Guedes
2012-01-30 16:36   ` Ulisses Furquim
2012-01-30 18:24   ` Marcel Holtmann
2012-01-30 18:23 ` [PATCH 1/2] Bluetooth: Use GFP_KERNEL in hci_conn_add() Marcel Holtmann
2012-01-30 19:08 ` Johan Hedberg

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).