Fix device addition for multiple apps 01/274101/1
authorAbhay Agarwal <ay.agarwal@samsung.com>
Thu, 21 Apr 2022 07:32:17 +0000 (13:02 +0530)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Thu, 21 Apr 2022 08:31:50 +0000 (14:01 +0530)
Change-Id: Id51a9bd6cadee423c3c58bd258d9feb1a753a5ca
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
ua-daemon/src/ua-manager-core.c

index a3618c3..c0d3e22 100755 (executable)
@@ -1364,7 +1364,7 @@ static void __uam_core_add_dev_to_list(
 
        UAM_DBG("device-id %s", dev_info->device_id);
 
-       l = g_slist_find_custom(devices, dev_info->device_id, __compare_device_id);
+       l = g_slist_find_custom(devices, dev_info, __compare_device_id_and_appnum);
        if (NULL != l) {
                UAM_DBG("The device already exists");
                device = l->data;