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-ppc-devel

[XenPPC] [linux-ppc-2.6] [ppc] memcpy() the local setup back into the or

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [linux-ppc-2.6] [ppc] memcpy() the local setup back into the original op pointer
From: Xen patchbot-linux-ppc-2.6 <patchbot-linux-ppc-2.6@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 06 Jun 2006 23:51:04 +0000
Delivery-date: Tue, 06 Jun 2006 16:57:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID a42dc9646bf5fb11980bbead4746aec7c88c8022
# Parent  28208ae097cbd70a1fbef90a8906b3186f589434
[ppc] memcpy() the local setup back into the original op pointer

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 arch/powerpc/platforms/xen/hcall.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 28208ae097cb -r a42dc9646bf5 arch/powerpc/platforms/xen/hcall.c
--- a/arch/powerpc/platforms/xen/hcall.c        Mon Jun 05 16:55:22 2006 -0500
+++ b/arch/powerpc/platforms/xen/hcall.c        Tue Jun 06 19:50:26 2006 -0400
@@ -151,7 +151,7 @@ int HYPERVISOR_grant_table_op(unsigned i
                        return rc;
 
                set_xen_guest_handle(setup.frame_list, (void 
*)__pa(frame_list));
-               op = &setup;
+               memcpy(op, &setup, sizeof(setup));
                }
                break;
        case GNTTABOP_dump_table:

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [linux-ppc-2.6] [ppc] memcpy() the local setup back into the original op pointer, Xen patchbot-linux-ppc-2 . 6 <=