NFC: Queue I frame fragments to the LLCP sockets queue tail
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 10 May 2012 17:45:52 +0000 (19:45 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 May 2012 17:08:14 +0000 (13:08 -0400)
After testing our stack with large SNEP messages, we realized the fragments
were arriving in reversed order.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/nfc/llcp/commands.c

index c4c100dc52ee1cae1689f25b6155e27e2b255004..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);