[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [PRIVCMD] Fix trivial bug introduced in IOCTL_PRIVCMD_MMAP.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID 411c6aca255c9be78cab2a91e4131a3e9807ea60
# Parent  e1f3af226a8e8cb32de079b283cdcac718d3e076
[PRIVCMD] Fix trivial bug introduced in IOCTL_PRIVCMD_MMAP.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r e1f3af226a8e -r 411c6aca255c 
linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c
--- a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c        Mon Oct 09 
10:56:17 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c        Mon Oct 09 
13:46:34 2006 +0100
@@ -130,7 +130,7 @@ static int privcmd_ioctl(struct inode *i
 
                va = vma->vm_start;
 
-               for (i = 0; i < mmapcmd.num; i++, p++) {
+               for (i = 0; i < mmapcmd.num; i++) {
                        rc = -EFAULT;
                        if (copy_from_user(&msg, p, sizeof(msg)))
                                goto mmap_out;

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.