Skip to content

Commit

Permalink
NFC: Queue I frame fragments to the LLCP sockets queue tail
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Samuel Ortiz authored and John W. Linville committed May 16, 2012
1 parent dbd4fca commit bdbc59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/nfc/llcp/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit bdbc59b

Please sign in to comment.