.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * The NFC Controller Interface is the communication protocol between an |
---|
3 | 4 | * NFC Controller (NFCC) and a Device Host (DH). |
---|
.. | .. |
---|
5 | 6 | * section of the NCI 1.1 specification. |
---|
6 | 7 | * |
---|
7 | 8 | * Copyright (C) 2014 STMicroelectronics SAS. All rights reserved. |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License version 2 |
---|
11 | | - * as published by the Free Software Foundation |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope that it will be useful, |
---|
14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | | - * GNU General Public License for more details. |
---|
17 | | - * |
---|
18 | | - * You should have received a copy of the GNU General Public License |
---|
19 | | - * along with this program; if not, see <http://www.gnu.org/licenses/>. |
---|
20 | | - * |
---|
21 | 9 | */ |
---|
22 | 10 | |
---|
23 | 11 | #include <linux/skbuff.h> |
---|
.. | .. |
---|
165 | 153 | |
---|
166 | 154 | i = 0; |
---|
167 | 155 | skb = nci_skb_alloc(ndev, conn_info->max_pkt_payload_len + |
---|
168 | | - NCI_DATA_HDR_SIZE, GFP_KERNEL); |
---|
| 156 | + NCI_DATA_HDR_SIZE, GFP_ATOMIC); |
---|
169 | 157 | if (!skb) |
---|
170 | 158 | return -ENOMEM; |
---|
171 | 159 | |
---|
.. | .. |
---|
198 | 186 | if (i < data_len) { |
---|
199 | 187 | skb = nci_skb_alloc(ndev, |
---|
200 | 188 | conn_info->max_pkt_payload_len + |
---|
201 | | - NCI_DATA_HDR_SIZE, GFP_KERNEL); |
---|
| 189 | + NCI_DATA_HDR_SIZE, GFP_ATOMIC); |
---|
202 | 190 | if (!skb) |
---|
203 | 191 | return -ENOMEM; |
---|
204 | 192 | |
---|