resource-manager: Check associated get ops correctly 49/300049/2
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 16 Oct 2023 06:21:12 +0000 (15:21 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 7 Nov 2023 03:49:33 +0000 (12:49 +0900)
Change-Id: I2c7ae3b4b295f2fbdfe8ed60f2b1cb2a4c3a17dc
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/resource-manager/resource-manager.c

index 9d1a664..2e6eecf 100644 (file)
@@ -513,7 +513,7 @@ update_resource_attr_with_1_user_data(struct syscommon_resman_resource *resource
 
        attr = &resource->attrs[attr_index];
 
-       if (!attr->ops.get)
+       if (!attr->ops.get_with_1_user_data)
                return -EINVAL;
 
        attr_value = &resource->attrs_value[attr_index];
@@ -545,7 +545,7 @@ update_resource_attr_with_2_user_data(struct syscommon_resman_resource *resource
 
        attr = &resource->attrs[attr_index];
 
-       if (!attr->ops.get)
+       if (!attr->ops.get_with_2_user_data)
                return -EINVAL;
 
        attr_value = &resource->attrs_value[attr_index];