[Model] All
[BinType] AP
[Customer] All
[Issue#] PLM
[Request] P170221-05634, P170221-06954
[Occurrence Version] All
[Problem] Media audio connection request was returning "In Progress" error
[Cause & Measure] Cause: While a media audio connect returned with error,
and its req_info was already removed after HF connection. Then the device will
not be removed from connecting_list, thus returning error there after for each
connection request
Measure: The device must be removed from connecting_list
even if the req_info is NULL.
[Checking Method] Unit testing
[Team] Connectivity
[Developer] sreeraj.mk
[Solution company] Samsung
[Change Type] N/A
Change-Id: Ibdb62ae67e7430992980cf0f775fd78366d38bf8
}
check_req_info:
- req_info = _bt_get_request_info(func_data->req_id);
- if (req_info == NULL) {
- BT_ERR("req_info == NULL");
- goto done;
- }
-
if (g_error == NULL)
goto dbus_return;
/* Event will be sent by the event reciever */
dbus_return:
- if (req_info->context == NULL) {
- BT_DBG("req_info->context is NULL");
+ req_info = _bt_get_request_info(func_data->req_id);
+ if (req_info == NULL) {
+ BT_ERR("req_info == NULL");
+ goto done;
+ } else if (req_info->context == NULL) {
+ BT_ERR("req_info->context is NULL");
goto done;
}