|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] x86: fix number of array elements calcula
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1267193176 0
# Node ID 6aa9fb913044621cf6d8de4f0978bd45e5046ada
# Parent 82661c9ad896470ddfa168028894c5190e462627
x86: fix number of array elements calculation in
XEN_DOMCTL_getpageframeinfo3 handler
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
xen/arch/x86/domctl.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -r 82661c9ad896 -r 6aa9fb913044 xen/arch/x86/domctl.c
--- a/xen/arch/x86/domctl.c Fri Feb 26 14:05:32 2010 +0000
+++ b/xen/arch/x86/domctl.c Fri Feb 26 14:06:16 2010 +0000
@@ -194,7 +194,8 @@ long arch_do_domctl(
for ( n = ret = 0; n < num; )
{
- unsigned int k = min_t(unsigned int, num - n, PAGE_SIZE / 4);
+ unsigned int k = min_t(unsigned int, num - n,
+ PAGE_SIZE / sizeof(*arr));
if ( copy_from_guest_offset(arr,
domctl->u.getpageframeinfo3.array,
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] x86: fix number of array elements calculation in,
Xen patchbot-unstable <=
|
|
|
|
|