summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarie Janssen <jamuraa@google.com>2015-12-17 18:48:54 -0800
committerMarie Janssen <jamuraa@google.com>2015-12-17 18:48:54 -0800
commit571b80b74469ff47327e51424dbe6cf49b45f72d (patch)
tree8d71d5c68cb69b25802126f5812b083c060e4934
parent5fe15108eb54ea7a090e60432b70e63040a4d365 (diff)
downloadmarvell-571b80b74469ff47327e51424dbe6cf49b45f72d.tar.gz
Fix memory allocation for btsnd_hcic_set_pcm_mode
Bug: 26049556 Change-Id: I22e734e33a03a7394aac3b853717f82b71b66fb1
-rwxr-xr-xperipheral/bt/bt_vendor_mrvl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/peripheral/bt/bt_vendor_mrvl.c b/peripheral/bt/bt_vendor_mrvl.c
index 00e9275..1ef0f36 100755
--- a/peripheral/bt/bt_vendor_mrvl.c
+++ b/peripheral/bt/bt_vendor_mrvl.c
@@ -408,7 +408,7 @@ int btsnd_hcic_set_pcm_mode(void) {
pcm_mode = 0x2;
}
- p = (HC_BT_HDR *) vnd_cb->alloc(HCIC_PARAM_SIZE_WRITE_PARAM1);
+ p = (HC_BT_HDR *) vnd_cb->alloc(BT_HC_HDR_SIZE + HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1);
if (p == NULL)
return BT_VND_OP_RESULT_FAIL;