diff --git a/sys/arch/xen/xen/privcmd.c b/sys/arch/xen/xen/privcmd.c index 02e3d42f9275..0fb579c636f8 100644 --- a/sys/arch/xen/xen/privcmd.c +++ b/sys/arch/xen/xen/privcmd.c @@ -1,4 +1,4 @@ -/* $NetBSD: privcmd.c,v 1.16 2007/04/27 22:10:39 bouyer Exp $ */ +/* $NetBSD: privcmd.c,v 1.17 2007/06/12 18:53:52 bouyer Exp $ */ /*- * Copyright (c) 2004 Christian Limpach. @@ -32,7 +32,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: privcmd.c,v 1.16 2007/04/27 22:10:39 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: privcmd.c,v 1.17 2007/06/12 18:53:52 bouyer Exp $"); #include "opt_compat_netbsd.h" @@ -119,7 +119,7 @@ privcmd_ioctl(void *v) pmap_t pmap = vm_map_pmap(vmm); for (i = 0; i < mcmd->num; i++) { - error = copyin(mcmd->entry, &mentry, sizeof(mentry)); + error = copyin(&mcmd->entry[i], &mentry, sizeof(mentry)); if (error) return error; //printf("entry %d va 0x%lx npages %lu mfm 0x%lx\n", i, mentry.va, mentry.npages, mentry.mfn);