mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-20 11:48:28 -06:00
* src/xen_internal.c: Daniel Berrange fixed some mlock size problem
doing a bit of cleanup too Daniel
This commit is contained in:
parent
cce70e0132
commit
18351e0ffc
@ -1,3 +1,8 @@
|
||||
Mon Oct 2 23:16:06 CEST 2006 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/xen_internal.c: Daniel Berrange fixed some mlock size problem
|
||||
doing a bit of cleanup too
|
||||
|
||||
Fri Sep 29 17:31:36 CEST 2006 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/virsh.c: add #include <locale.h> to be able to compile without
|
||||
|
@ -656,7 +656,7 @@ virXen_getdomaininfolist(int handle, int first_domain, int maxids,
|
||||
if (mlock(XEN_GETDOMAININFOLIST_DATA(dominfos),
|
||||
XEN_GETDOMAININFO_SIZE * maxids) < 0) {
|
||||
virXenError(VIR_ERR_XEN_CALL, " locking",
|
||||
sizeof(xen_v0_getdomaininfo) * maxids);
|
||||
XEN_GETDOMAININFO_SIZE * maxids);
|
||||
return (-1);
|
||||
}
|
||||
if (hypervisor_version > 1) {
|
||||
@ -696,10 +696,10 @@ virXen_getdomaininfolist(int handle, int first_domain, int maxids,
|
||||
if (ret == 0)
|
||||
ret = op.u.getdomaininfolist.num_domains;
|
||||
}
|
||||
if (mlock(XEN_GETDOMAININFOLIST_DATA(dominfos),
|
||||
if (munlock(XEN_GETDOMAININFOLIST_DATA(dominfos),
|
||||
XEN_GETDOMAININFO_SIZE * maxids) < 0) {
|
||||
virXenError(VIR_ERR_XEN_CALL, " release",
|
||||
sizeof(xen_v0_getdomaininfo));
|
||||
XEN_GETDOMAININFO_SIZE * maxids);
|
||||
ret = -1;
|
||||
}
|
||||
return(ret);
|
||||
|
Loading…
Reference in New Issue
Block a user