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] Fix an incorrect type, and a missing return value check,

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fix an incorrect type, and a missing return value check,
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 25 Jan 2006 13:58:08 +0000
Delivery-date: Wed, 25 Jan 2006 14:07:44 +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 2b4b1963b76e5a9503304f3cd690fb8358a57b4e
# Parent  71914b64b5770285cf095c1906e346b814f4878b
Fix an incorrect type, and a missing return value check,
in direct_remap_pfn_range().

Signed-off-by: Jan Beulich <JBeulich@xxxxxxxxxx>

diff -r 71914b64b577 -r 2b4b1963b76e 
linux-2.6-xen-sparse/arch/xen/i386/mm/ioremap.c
--- a/linux-2.6-xen-sparse/arch/xen/i386/mm/ioremap.c   Tue Jan 24 17:05:45 2006
+++ b/linux-2.6-xen-sparse/arch/xen/i386/mm/ioremap.c   Tue Jan 24 17:08:11 2006
@@ -52,8 +52,8 @@
                                    pgprot_t prot,
                                    domid_t  domid)
 {
-       int i, rc;
-       unsigned long start_address;
+       int rc;
+       unsigned long i, start_address;
        mmu_update_t *u, *v, *w;
 
        u = v = w = (mmu_update_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT);
@@ -93,8 +93,10 @@
 
        if (v != u) {
                /* get the ptep's filled in */
-               generic_page_range(mm, start_address, address - start_address,
+               rc = generic_page_range(mm, start_address, address - 
start_address,
                                   direct_remap_area_pte_fn, &w);
+               if (rc)
+                       goto out;
                rc = -EFAULT;
                if (unlikely(HYPERVISOR_mmu_update(u, v - u, NULL, domid) < 0))
                        goto out;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix an incorrect type, and a missing return value check,, Xen patchbot -unstable <=