diff options
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index a032741c96e6..207b4a868485 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -1384,7 +1384,7 @@ static struct l2cap_conn *l2cap_conn_add(struct hci_conn *hcon, u8 status) | |||
1384 | if (!hchan) | 1384 | if (!hchan) |
1385 | return NULL; | 1385 | return NULL; |
1386 | 1386 | ||
1387 | conn = kzalloc(sizeof(struct l2cap_conn), GFP_ATOMIC); | 1387 | conn = kzalloc(sizeof(struct l2cap_conn), GFP_KERNEL); |
1388 | if (!conn) { | 1388 | if (!conn) { |
1389 | hci_chan_del(hchan); | 1389 | hci_chan_del(hchan); |
1390 | return NULL; | 1390 | return NULL; |
@@ -1836,9 +1836,9 @@ static void l2cap_ertm_resend(struct l2cap_chan *chan) | |||
1836 | /* Cloned sk_buffs are read-only, so we need a | 1836 | /* Cloned sk_buffs are read-only, so we need a |
1837 | * writeable copy | 1837 | * writeable copy |
1838 | */ | 1838 | */ |
1839 | tx_skb = skb_copy(skb, GFP_ATOMIC); | 1839 | tx_skb = skb_copy(skb, GFP_KERNEL); |
1840 | } else { | 1840 | } else { |
1841 | tx_skb = skb_clone(skb, GFP_ATOMIC); | 1841 | tx_skb = skb_clone(skb, GFP_KERNEL); |
1842 | } | 1842 | } |
1843 | 1843 | ||
1844 | if (!tx_skb) { | 1844 | if (!tx_skb) { |
@@ -2584,7 +2584,7 @@ static void l2cap_raw_recv(struct l2cap_conn *conn, struct sk_buff *skb) | |||
2584 | /* Don't send frame to the socket it came from */ | 2584 | /* Don't send frame to the socket it came from */ |
2585 | if (skb->sk == sk) | 2585 | if (skb->sk == sk) |
2586 | continue; | 2586 | continue; |
2587 | nskb = skb_clone(skb, GFP_ATOMIC); | 2587 | nskb = skb_clone(skb, GFP_KERNEL); |
2588 | if (!nskb) | 2588 | if (!nskb) |
2589 | continue; | 2589 | continue; |
2590 | 2590 | ||
@@ -2610,7 +2610,7 @@ static struct sk_buff *l2cap_build_cmd(struct l2cap_conn *conn, u8 code, | |||
2610 | len = L2CAP_HDR_SIZE + L2CAP_CMD_HDR_SIZE + dlen; | 2610 | len = L2CAP_HDR_SIZE + L2CAP_CMD_HDR_SIZE + dlen; |
2611 | count = min_t(unsigned int, conn->mtu, len); | 2611 | count = min_t(unsigned int, conn->mtu, len); |
2612 | 2612 | ||
2613 | skb = bt_skb_alloc(count, GFP_ATOMIC); | 2613 | skb = bt_skb_alloc(count, GFP_KERNEL); |
2614 | if (!skb) | 2614 | if (!skb) |
2615 | return NULL; | 2615 | return NULL; |
2616 | 2616 | ||
@@ -2640,7 +2640,7 @@ static struct sk_buff *l2cap_build_cmd(struct l2cap_conn *conn, u8 code, | |||
2640 | while (len) { | 2640 | while (len) { |
2641 | count = min_t(unsigned int, conn->mtu, len); | 2641 | count = min_t(unsigned int, conn->mtu, len); |
2642 | 2642 | ||
2643 | *frag = bt_skb_alloc(count, GFP_ATOMIC); | 2643 | *frag = bt_skb_alloc(count, GFP_KERNEL); |
2644 | if (!*frag) | 2644 | if (!*frag) |
2645 | goto fail; | 2645 | goto fail; |
2646 | 2646 | ||
@@ -5626,7 +5626,7 @@ int l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 flags) | |||
5626 | } | 5626 | } |
5627 | 5627 | ||
5628 | /* Allocate skb for the complete frame (with header) */ | 5628 | /* Allocate skb for the complete frame (with header) */ |
5629 | conn->rx_skb = bt_skb_alloc(len, GFP_ATOMIC); | 5629 | conn->rx_skb = bt_skb_alloc(len, GFP_KERNEL); |
5630 | if (!conn->rx_skb) | 5630 | if (!conn->rx_skb) |
5631 | goto drop; | 5631 | goto drop; |
5632 | 5632 | ||