static CMPIStatus pool_to_rasd(const CMPIObjectPath *ref,
struct std_assoc_info *info,
struct inst_list *list)
@@ -176,7 +130,8 @@ static CMPIStatus pool_to_rasd(const CMP
CMPIStatus s = {CMPI_RC_OK, NULL};
const char *poolid;
uint16_t type;
- CMPIInstance *inst;
+ CMPIInstance *inst = NULL;
+ struct inst_list tmp_list;
if (!match_hypervisor_prefix(ref, info))
goto out;
@@ -200,11 +155,16 @@ static CMPIStatus pool_to_rasd(const CMP
goto out;
}
- rasds_from_pool(type,
- ref,
- poolid,
- info->properties,
- list);
+ inst_list_init(&tmp_list);
+
+ s = enum_rasds(_BROKER,
+ ref,
+ NULL,
+ type,
+ info->properties,
+ &tmp_list);
+
+ filter_by_pool(list, &tmp_list, poolid);
out:
return s;
tmp_list doesn't get freed here.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com