WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] x86: fix number of array elements calcula

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86: fix number of array elements calculation in
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 Feb 2010 06:15:11 -0800
Delivery-date: Fri, 26 Feb 2010 06:17:19 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=