This patch fix a simple bug in virDomainSetMemoryFlags function.
The patch sent before lacks the consideration of the case
where the driver doesn't support virDomainSetMemoryFlags API.
Signed-off-by: Taku Izumi <izumi.taku(a)jp.fujitsu.com>
---
src/libvirt.c | 2 ++
1 file changed, 2 insertions(+)
Index: libvirt/src/libvirt.c
===================================================================
--- libvirt.orig/src/libvirt.c
+++ libvirt/src/libvirt.c
@@ -2902,6 +2902,8 @@ virDomainSetMemoryFlags(virDomainPtr dom
return ret;
}
+ virLibConnError(VIR_ERR_NO_SUPPORT, __FUNCTION__);
+
error:
virDispatchError(domain->conn);
return -1;