Skip to content

Commit 20d72b4

Browse files
Ruchi Kandoiarco
authored andcommitted
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
1 parent 4d1bc6d commit 20d72b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nfc/nfc/nfc_ncif.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ void nfc_ncif_proc_init_rsp(NFC_HDR* p_msg) {
13731373
nfc_set_state(NFC_STATE_W4_POST_INIT_CPLT);
13741374

13751375
nfc_cb.p_nci_init_rsp = p_msg;
1376-
nfc_cb.p_hal->core_initialized(p_msg->len - p_msg->offset, p);
1376+
nfc_cb.p_hal->core_initialized(p_msg->len, p);
13771377
}
13781378
} else {
13791379
if (nfc_cb.nci_version == NCI_VERSION_UNKNOWN) {

0 commit comments

Comments
 (0)