summaryrefslogtreecommitdiff
path: root/android/hal-health.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-11-17 11:23:44 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-11-17 11:23:44 +0200
commitd21b8db341ccd407556f44460e12947d9b31c2ed (patch)
tree260aaa57f42cbb7d6f7aab6adba3e6a36d172d02 /android/hal-health.c
parentb936623b0f36b84f2bf2cafc33201375c4416a6d (diff)
downloadbluez-d21b8db341ccd407556f44460e12947d9b31c2ed.tar.gz
android: Fix not setting max_clients
If max_clients is not set the ipc send uninitialized bytes.
Diffstat (limited to 'android/hal-health.c')
-rw-r--r--android/hal-health.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/hal-health.c b/android/hal-health.c
index 01bc4320a..846273647 100644
--- a/android/hal-health.c
+++ b/android/hal-health.c
@@ -249,6 +249,7 @@ static bt_status_t init(bthl_callbacks_t *callbacks)
cmd.service_id = HAL_SERVICE_ID_HEALTH;
cmd.mode = HAL_MODE_DEFAULT;
+ cmd.max_clients = 1;
ret = hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_OP_REGISTER_MODULE,
sizeof(cmd), &cmd, NULL, NULL, NULL);