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] /dev/mem write function should use copy_from_user, not c

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] /dev/mem write function should use copy_from_user, not copy_to_user.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 17 Nov 2005 11:28:08 +0000
Delivery-date: Thu, 17 Nov 2005 11:28:41 +0000
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 9f4efb238f5bf31fd313cfd11e203db4d7b247ab
# Parent  592d8f74d23dc1753ccfc049cc08a368f7badf1b
/dev/mem write function should use copy_from_user, not copy_to_user.

Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>

diff -r 592d8f74d23d -r 9f4efb238f5b 
linux-2.6-xen-sparse/arch/xen/kernel/devmem.c
--- a/linux-2.6-xen-sparse/arch/xen/kernel/devmem.c     Wed Nov 16 10:33:13 2005
+++ b/linux-2.6-xen-sparse/arch/xen/kernel/devmem.c     Wed Nov 16 10:34:19 2005
@@ -79,7 +79,7 @@
 
        if ((v = ioremap(p, count)) == NULL)
                return -EFAULT;
-       if (copy_to_user(v, buf, count))
+       if (copy_from_user(v, buf, count))
                goto out;
 
        written = count;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] /dev/mem write function should use copy_from_user, not copy_to_user., Xen patchbot -unstable <=