linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: change gfp type in hci_recv_stream_fragment()
@ 2011-03-31  6:56 Zhang Jiejing
  2011-04-04 21:16 ` Gustavo F. Padovan
  0 siblings, 1 reply; 4+ messages in thread
From: Zhang Jiejing @ 2011-03-31  6:56 UTC (permalink / raw)
  To: suraj, marcel, padovan, linux-bluetooth

change gfp type passed to hci_reassembly(), replace GFP_ATOMIC
to GFP_KERNEL. Since some HCI_ACLDATA may request 1024+4 bytes
some time GFP_ATOMIC will failed to allocation memory during
large file FTP transfer in high baud rate.

Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
---
 net/bluetooth/hci_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 9c4541b..22b3ded 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1214,7 +1214,7 @@ int hci_recv_stream_fragment(struct hci_dev *hdev, void *data, int count)
 			type = bt_cb(skb)->pkt_type;
 
 		rem = hci_reassembly(hdev, type, data,
-					count, STREAM_REASSEMBLY, GFP_ATOMIC);
+					count, STREAM_REASSEMBLY, GFP_KERNEL);
 		if (rem < 0)
 			return rem;
 
-- 
1.7.0.4

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

end of thread, other threads:[~2011-04-05 12:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-31  6:56 [PATCH] Bluetooth: change gfp type in hci_recv_stream_fragment() Zhang Jiejing
2011-04-04 21:16 ` Gustavo F. Padovan
2011-04-05  8:47   ` Zhang Jiejing-B33651
2011-04-05 12:02     ` Suraj Sumangala

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