NFC: Socket linked list
[deliverable/linux.git] / net / nfc / llcp / commands.c
index 11a3b7d98dc5bbeb1a1cd4c91ef193f4dd921844..bf8ae4f0b90c933d9dc3dbda70416498df2e97fa 100644 (file)
@@ -488,7 +488,7 @@ int nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock,
 
                memcpy(skb_put(pdu, frag_len), msg_ptr, frag_len);
 
-               skb_queue_head(&sock->tx_queue, pdu);
+               skb_queue_tail(&sock->tx_queue, pdu);
 
                lock_sock(sk);
 
@@ -502,7 +502,7 @@ int nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock,
 
        kfree(msg_data);
 
-       return 0;
+       return len;
 }
 
 int nfc_llcp_send_rr(struct nfc_llcp_sock *sock)
This page took 0.048775 seconds and 5 git commands to generate.