diff options
author | Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com> | 2014-08-18 12:06:59 +0300 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-08-19 16:54:02 +0200 |
commit | e21de8732f4d8d85df9df01a1196be46ff38d7fa (patch) | |
tree | 787ad96d759822125047265871aecaeec235a0a9 /android/health.c | |
parent | 69ccc52efbff3f4862d1badd66ae5e593c547346 (diff) | |
download | bluez-e21de8732f4d8d85df9df01a1196be46ff38d7fa.tar.gz |
android/health: Fix connect channel failure case
There is a possibilty of created channel is being added to queue,
but on failure case it does channel free but not removed from queue.
Diffstat (limited to 'android/health.c')
-rw-r--r-- | android/health.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/android/health.c b/android/health.c index f4edc3eda..f86fd263f 100644 --- a/android/health.c +++ b/android/health.c @@ -1978,6 +1978,7 @@ static void bt_health_connect_channel(const void *buf, uint16_t len) return; fail: + queue_remove(channel->dev->channels, channel); free_health_channel(channel); ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_HEALTH, HAL_OP_HEALTH_CONNECT_CHANNEL, HAL_STATUS_FAILED); |