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/
Home Products Support Community News


[Xen-changelog] Return real error code from Xen /dev/mem, not EAGAIN.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Return real error code from Xen /dev/mem, not EAGAIN.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 13 Feb 2006 18:08:13 +0000
Delivery-date: Mon, 13 Feb 2006 18:20:58 +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 fcc833cbaf827327ad9e9348c93aaf7f99f0253f
# Parent  d6b16f57058a984ba903541d77927e07686659e9
Return real error code from Xen /dev/mem, not EAGAIN.

Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r d6b16f57058a -r fcc833cbaf82 linux-2.6-xen-sparse/drivers/xen/char/mem.c
--- a/linux-2.6-xen-sparse/drivers/xen/char/mem.c       Mon Feb 13 15:47:04 2006
+++ b/linux-2.6-xen-sparse/drivers/xen/char/mem.c       Mon Feb 13 16:41:23 2006
@@ -96,12 +96,9 @@
        if (uncached_access(file))
                vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
-       if (direct_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff,
-                                  size,
-                                  vma->vm_page_prot, DOMID_IO))
-               return -EAGAIN;
-       return 0;
+       /* We want to return the real error code, not EAGAIN. */
+       return direct_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff,
+                                     size, vma->vm_page_prot, DOMID_IO);

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Return real error code from Xen /dev/mem, not EAGAIN., Xen patchbot -unstable <=