Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8bf65bf authored by Mathias Jeppsson's avatar Mathias Jeppsson Committed by John W. Linville
Browse files

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: default avatarMathias Jeppsson <mathias.jeppsson@sonymobile.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1913e57c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);