aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-04-04 17:25:14 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-04-04 17:25:14 -0400
commit1e429f3842b5c9b5967a250f4daf78f92436268c (patch)
tree7f0bc91593a02545d66bfd849dc84e6ceef087ba /net
parent220b881a77eca96afdd6037dbca3441e8938228f (diff)
Bluetooth: Remove gfp_mask param from hci_reassembly()
It is unnecessary, once we are always in interrupt context. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_core.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index decd60198f31..a80bc1cdb35b 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1341,7 +1341,7 @@ int hci_recv_frame(struct sk_buff *skb)
1341EXPORT_SYMBOL(hci_recv_frame); 1341EXPORT_SYMBOL(hci_recv_frame);
1342 1342
1343static int hci_reassembly(struct hci_dev *hdev, int type, void *data, 1343static int hci_reassembly(struct hci_dev *hdev, int type, void *data,
1344 int count, __u8 index, gfp_t gfp_mask) 1344 int count, __u8 index)
1345{ 1345{
1346 int len = 0; 1346 int len = 0;
1347 int hlen = 0; 1347 int hlen = 0;
@@ -1371,7 +1371,7 @@ static int hci_reassembly(struct hci_dev *hdev, int type, void *data,
1371 break; 1371 break;
1372 } 1372 }
1373 1373
1374 skb = bt_skb_alloc(len, gfp_mask); 1374 skb = bt_skb_alloc(len, GFP_ATOMIC);
1375 if (!skb) 1375 if (!skb)
1376 return -ENOMEM; 1376 return -ENOMEM;
1377 1377
@@ -1457,8 +1457,7 @@ int hci_recv_fragment(struct hci_dev *hdev, int type, void *data, int count)
1457 return -EILSEQ; 1457 return -EILSEQ;
1458 1458
1459 while (count) { 1459 while (count) {
1460 rem = hci_reassembly(hdev, type, data, count, 1460 rem = hci_reassembly(hdev, type, data, count, type - 1);
1461 type - 1, GFP_ATOMIC);
1462 if (rem < 0) 1461 if (rem < 0)
1463 return rem; 1462 return rem;
1464 1463
@@ -1492,8 +1491,8 @@ int hci_recv_stream_fragment(struct hci_dev *hdev, void *data, int count)
1492 } else 1491 } else
1493 type = bt_cb(skb)->pkt_type; 1492 type = bt_cb(skb)->pkt_type;
1494 1493
1495 rem = hci_reassembly(hdev, type, data, 1494 rem = hci_reassembly(hdev, type, data, count,
1496 count, STREAM_REASSEMBLY, GFP_ATOMIC); 1495 STREAM_REASSEMBLY);
1497 if (rem < 0) 1496 if (rem < 0)
1498 return rem; 1497 return rem;
1499 1498