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

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



# 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
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®.