hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/nfc/nci/hci.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * The NFC Controller Interface is the communication protocol between an
34 * NFC Controller (NFCC) and a Device Host (DH).
....@@ -5,19 +6,6 @@
56 * section of the NCI 1.1 specification.
67 *
78 * 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
- *
219 */
2210
2311 #include <linux/skbuff.h>
....@@ -165,7 +153,7 @@
165153
166154 i = 0;
167155 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);
169157 if (!skb)
170158 return -ENOMEM;
171159
....@@ -198,7 +186,7 @@
198186 if (i < data_len) {
199187 skb = nci_skb_alloc(ndev,
200188 conn_info->max_pkt_payload_len +
201
- NCI_DATA_HDR_SIZE, GFP_KERNEL);
189
+ NCI_DATA_HDR_SIZE, GFP_ATOMIC);
202190 if (!skb)
203191 return -ENOMEM;
204192