]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/nfc/rawsock.c
arm: imx: tx6: mfgtool defconfig
[karo-tx-linux.git] / net / nfc / rawsock.c
index 8627c75063e232d218d813344067347711cb367e..11c3544ea5466f54f8038ca19f500a831d1ca79f 100644 (file)
@@ -31,14 +31,14 @@ static struct nfc_sock_list raw_sk_list = {
        .lock = __RW_LOCK_UNLOCKED(raw_sk_list.lock)
 };
 
-void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk)
+static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk)
 {
        write_lock(&l->lock);
        sk_add_node(sk, &l->head);
        write_unlock(&l->lock);
 }
 
-void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk)
+static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk)
 {
        write_lock(&l->lock);
        sk_del_node_init(sk);
@@ -378,8 +378,8 @@ void nfc_send_to_raw_sock(struct nfc_dev *dev, struct sk_buff *skb,
 
        sk_for_each(sk, &raw_sk_list.head) {
                if (!skb_copy) {
-                       skb_copy = __pskb_copy(skb, NFC_RAW_HEADER_SIZE,
-                                    GFP_ATOMIC);
+                       skb_copy = __pskb_copy_fclone(skb, NFC_RAW_HEADER_SIZE,
+                                                     GFP_ATOMIC, true);
                        if (!skb_copy)
                                continue;