[Libvirt-cim] [PATCH] Fix cu_statusf() call in RASD

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Tue Mar 11 18:09:22 UTC 2008


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1205258941 25200
# Node ID 4f17d756b6c3551d1ae0a3aee1939a5ad6963c67
# Parent  1429af47e9413d5f0bcf51e5a58988177bc32bbf
Fix cu_statusf() call in RASD.

It's not easy to tell from the diff, but get_rasd_by_ref() takes a const CMPIBroker *broker argument.  So when we fail, we need to use the broker, not the _BROKER that is local to the provider.

Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>

diff -r 1429af47e941 -r 4f17d756b6c3 src/Virt_RASD.c
--- a/src/Virt_RASD.c	Tue Mar 11 10:18:05 2008 -0700
+++ b/src/Virt_RASD.c	Tue Mar 11 11:09:01 2008 -0700
@@ -433,7 +433,7 @@ CMPIStatus get_rasd_by_ref(const CMPIBro
         uint16_t type;
 
         if (cu_get_str_path(reference, "InstanceID", &name) != CMPI_RC_OK) {
-                cu_statusf(_BROKER, &s,
+                cu_statusf(broker, &s,
                            CMPI_RC_ERR_FAILED,
                            "Missing InstanceID");
                 goto out;




More information about the Libvirt-cim mailing list