summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuchi Kandoi <kandoiruchi@google.com>2017-11-27 13:17:43 -0800
committerArne Coucheron <arco68@gmail.com>2018-04-03 23:36:45 +0200
commit20d72b49563663189258481caa6d042a505be36e (patch)
treeeaa57f0926a1213a132ee112c9fb6fc5fd8a1482
parent4d1bc6d47655e9445eb3d17dfde16e410341d76f (diff)
downloadandroid_hardware_broadcom_nfc-20d72b49563663189258481caa6d042a505be36e.tar.gz
android_hardware_broadcom_nfc-20d72b49563663189258481caa6d042a505be36e.tar.bz2
android_hardware_broadcom_nfc-20d72b49563663189258481caa6d042a505be36e.zip
Correct the parameter length for core_initialized()
Ib8ebcfb5f3998bba025e9559ab52e1f9eacc4df6 introduced a bug where the length of the argument for core_initialized() was incorrect, causing data to be truncated when sent over the HAL interface. Test: NFC enable/disable Bug: 69438157 Change-Id: Iaa5e66f2191da20340c31e0c6c2725b60dab245b
-rw-r--r--src/nfc/nfc/nfc_ncif.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nfc/nfc/nfc_ncif.cc b/src/nfc/nfc/nfc_ncif.cc
index da691a4..b702611 100644
--- a/src/nfc/nfc/nfc_ncif.cc
+++ b/src/nfc/nfc/nfc_ncif.cc
@@ -1373,7 +1373,7 @@ void nfc_ncif_proc_init_rsp(NFC_HDR* p_msg) {
nfc_set_state(NFC_STATE_W4_POST_INIT_CPLT);
nfc_cb.p_nci_init_rsp = p_msg;
- nfc_cb.p_hal->core_initialized(p_msg->len - p_msg->offset, p);
+ nfc_cb.p_hal->core_initialized(p_msg->len, p);
}
} else {
if (nfc_cb.nci_version == NCI_VERSION_UNKNOWN) {