From 31902d57fcfcf1ece5948a10107be09bf938362b Mon Sep 17 00:00:00 2001 From: Sameer Kumar Date: Mon, 29 Jul 2024 17:02:26 +0530 Subject: [PATCH] This patch fixes SVACE issue. Issue ID: 213496 213568 213587 Change-Id: Icdfd28fd629b061eb48c9f08530fc1ba4ee3dad1 Signed-off-by: Sameer Kumar --- bt-oal/bluez_hal/src/bt-hal-l2cap-le-dbus-handler.c | 4 ++-- bt-oal/bluez_hal/src/bt-hal-rfcomm-dbus-handler.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bt-oal/bluez_hal/src/bt-hal-l2cap-le-dbus-handler.c b/bt-oal/bluez_hal/src/bt-hal-l2cap-le-dbus-handler.c index 5e7eb4b..8fed6d5 100644 --- a/bt-oal/bluez_hal/src/bt-hal-l2cap-le-dbus-handler.c +++ b/bt-oal/bluez_hal/src/bt-hal-l2cap-le-dbus-handler.c @@ -682,14 +682,14 @@ static int __listen_l2cap_le_server(l2cap_le_server_data_t *server_data) INFO("Listen psm: %d", profile_info.psm); ret = _bt_hal_listen_l2cap_le(&profile_info); - if (ret < 0) { + if (ret != BT_STATUS_SUCCESS) { ERR("Error: Listen L2CAP_LE server failed"); return BT_STATUS_FAIL; } if (server_data->psm == L2CAP_LE_DEFAULT_CHANNEL) { ret = _bt_hal_get_psm_l2cap_le(&profile_info, &psm); - if (ret < 0) { + if (ret != BT_STATUS_SUCCESS ) { ERR("Error: get_psm failed"); return BT_STATUS_FAIL; } diff --git a/bt-oal/bluez_hal/src/bt-hal-rfcomm-dbus-handler.c b/bt-oal/bluez_hal/src/bt-hal-rfcomm-dbus-handler.c index 0a96b57..b17ceb6 100644 --- a/bt-oal/bluez_hal/src/bt-hal-rfcomm-dbus-handler.c +++ b/bt-oal/bluez_hal/src/bt-hal-rfcomm-dbus-handler.c @@ -484,7 +484,7 @@ static void __bt_discover_service_response_cb(GDBusProxy *proxy, info.role = "client"; ret = _bt_hal_register_profile(&info, FALSE); - if (ret < 0) + if (ret != BT_STATUS_SUCCESS) DBG("Error: register profile"); ret = _bt_hal_connect_profile(dev_address, cb_data->uuid, __bt_connect_response_cb, cb_data); @@ -742,7 +742,7 @@ static int __register_rfcomm_server(rfcomm_server_data_t *server_data) INFO("uuid %s, svc: %s, role: %s", profile_info.uuid, profile_info.service, profile_info.role); ret = _bt_hal_register_profile(&profile_info, TRUE); - if (ret < 0) { + if (ret != BT_STATUS_SUCCESS) { ERR("Error: register profile"); return BT_STATUS_FAIL; } -- 2.7.4