[Libvirt-cim] [PATCH 1 of 2] Add new provider - VirtualSystemMigrationSettingData

Heidi Eckhart heidieck at linux.vnet.ibm.com
Thu Feb 7 09:02:14 UTC 2008


Kaitlin Rupert wrote:
> +static CMPIStatus return_vsmsd(const CMPIObjectPath *ref,
> +                               const CMPIResult *results,
> +                               bool name_only,
> +                               bool is_get_inst)
> +{
> +        CMPIInstance *inst = NULL;
> +        CMPIStatus s;
> +
> +        s = get_migration_sd(ref, &inst, _BROKER, is_get_inst);
>   
This is seg faulting the provider for a request against Xen on a KVM 
only system (and reverse). The reason is that get_migration_sd() returns 
with OK but no instances for Xen. This inst==NULL seg faults the 
following returns.

> +
> +        if (s.rc == CMPI_RC_OK) {
> +                if (name_only)
> +                        cu_return_instance_name(results, inst);
> +                else
> +                        CMReturnInstance(results, inst);
> +        }
> +
> +        return s;
> +}
> +
>   


-- 
Regards

Heidi Eckhart
Software Engineer
IBM Linux Technology Center - Open Hypervisor




More information about the Libvirt-cim mailing list