debuggers.hg

changeset 21032:6aa9fb913044

x86: fix number of array elements calculation in
XEN_DOMCTL_getpageframeinfo3 handler

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Feb 26 14:06:16 2010 +0000 (2010-02-26)
parents 82661c9ad896
children c4301c2c727d
files xen/arch/x86/domctl.c
line diff
     1.1 --- a/xen/arch/x86/domctl.c	Fri Feb 26 14:05:32 2010 +0000
     1.2 +++ b/xen/arch/x86/domctl.c	Fri Feb 26 14:06:16 2010 +0000
     1.3 @@ -194,7 +194,8 @@ long arch_do_domctl(
     1.4  
     1.5              for ( n = ret = 0; n < num; )
     1.6              {
     1.7 -                unsigned int k = min_t(unsigned int, num - n, PAGE_SIZE / 4);
     1.8 +                unsigned int k = min_t(unsigned int, num - n,
     1.9 +                                       PAGE_SIZE / sizeof(*arr));
    1.10  
    1.11                  if ( copy_from_guest_offset(arr,
    1.12                                              domctl->u.getpageframeinfo3.array,