libvirt: fix a simple bug in virDomainSetMemoryFlags()

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@jp.fujitsu.com>
This commit is contained in:
Taku Izumi 2011-03-15 16:49:31 +09:00 committed by Laine Stump
parent 4e3117ae50
commit e5d46c08af

View File

@ -2902,6 +2902,8 @@ virDomainSetMemoryFlags(virDomainPtr domain, unsigned long memory,
return ret;
}
virLibConnError(VIR_ERR_NO_SUPPORT, __FUNCTION__);
error:
virDispatchError(domain->conn);
return -1;