Skip to content

Commit

Permalink
NFC: Fix order of arguments to list_add_tail() when queueing HCP frames
Browse files Browse the repository at this point in the history
The HCP message should be added to transmit queue, not the other way around.

Signed-off-by: Mathias Jeppsson <mathias.jeppsson@sonymobile.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Mathias Jeppsson authored and John W. Linville committed Jul 10, 2012
1 parent 1913e57 commit f8bf65b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/nfc/hci/hcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ int nfc_hci_hcp_message_tx(struct nfc_hci_dev *hdev, u8 pipe,
}

mutex_lock(&hdev->msg_tx_mutex);
list_add_tail(&hdev->msg_tx_queue, &cmd->msg_l);
list_add_tail(&cmd->msg_l, &hdev->msg_tx_queue);
mutex_unlock(&hdev->msg_tx_mutex);

queue_work(hdev->msg_tx_wq, &hdev->msg_tx_work);
Expand Down

0 comments on commit f8bf65b

Please sign in to comment.