summaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
authorMathias Jeppsson <mathias.jeppsson@sonymobile.com>2012-07-07 00:53:19 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-07-10 11:42:51 -0400
commitf8bf65bf3688835f95f7c74f5c844a64b2743a42 (patch)
tree399232b5e3b4b186eaa51794f9311f5f6fdf78b4 /net/nfc
parent1913e57cf9a7be4565c56a3fbfd85106919ea006 (diff)
downloadtalos-obmc-linux-f8bf65bf3688835f95f7c74f5c844a64b2743a42.tar.gz
talos-obmc-linux-f8bf65bf3688835f95f7c74f5c844a64b2743a42.zip
NFC: Fix order of arguments to list_add_tail() when queueing HCP frames
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>
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/hci/hcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/hci/hcp.c b/net/nfc/hci/hcp.c
index 7212cf2c5785..f4dad1a89740 100644
--- a/net/nfc/hci/hcp.c
+++ b/net/nfc/hci/hcp.c
@@ -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);
OpenPOWER on IntegriCloud