summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKush <kush.agrawal@samsung.com>2019-12-12 14:57:39 +0530
committerSudipto Bal <sudipto.bal@samsung.com>2020-01-06 05:42:48 +0000
commite55210fb35d7f7c2130cb33f23620f52cdab39e2 (patch)
tree56aa0ec71a9174536f39096d0cec717181f0dc4f
parent0b3468590b08bfb8d617b4e207988dd27ddc7ad1 (diff)
downloadiotivity-e55210fb35d7f7c2130cb33f23620f52cdab39e2.tar.gz
iotivity-e55210fb35d7f7c2130cb33f23620f52cdab39e2.tar.bz2
iotivity-e55210fb35d7f7c2130cb33f23620f52cdab39e2.zip
Deadlock after BLE connection error in caleserver_mcd.c
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/15bf09e4501b18843ba6ad64dbe44a5d9003143b (cherry-picked from 15bf09e4501b18843ba6ad64dbe44a5d9003143b) Change-Id: I51fb612f1e44f85f7b120c9469ebe76dabf6583e Signed-off-by: Kush <kush.agrawal@samsung.com> Signed-off-by: Sudipto <sudipto.bal@samsung.com>
-rw-r--r--resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c
index e9e3d0079..362ab6e9e 100644
--- a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c
+++ b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c
@@ -1200,6 +1200,7 @@ uint16_t CALEServerGetMtuSize(const char* address)
{
OIC_LOG_V(ERROR, TAG,
"bt_gatt_server_get_device_mtu failed with return [%s]", CALEGetErrorMsg(ret));
+ oc_mutex_unlock(g_LEClientListMutex);
return CA_DEFAULT_BLE_MTU_SIZE;
}
#else
@@ -1237,6 +1238,7 @@ uint16_t CALEServerGetMtuSize(const char* address)
{
OIC_LOG_V(ERROR, TAG,
"bt_device_get_att_mtu failed with return [%s]", CALEGetErrorMsg(ret));
+ oc_mutex_unlock(g_LEClientListMutex);
return CA_DEFAULT_BLE_MTU_SIZE;
}
#endif // BLE_TIZEN_40