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] [xen-3.4-testing] x86: fix improper return value from re

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] x86: fix improper return value from relinquish_memory()
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 30 Mar 2010 05:45:35 -0700
Delivery-date: Tue, 30 Mar 2010 05:45:39 -0700
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1269952564 -3600
# Node ID b0aef7160eebaea9686cffd49d10823a345f0242
# Parent  5b43b64a40f92b59e765c874289ed5af4d4155fe
x86: fix improper return value from relinquish_memory()

While apparently only a theoretical possibility (domain_kill() has a
BUG_ON() that wasn't reported to trigger so far), I still think it is
better to have the code cleaned up.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
xen-unstable changeset:   21061:12aebcebff2a
xen-unstable date:        Thu Mar 25 07:40:09 2010 +0000
---
 xen/arch/x86/domain.c |    1 +
 1 files changed, 1 insertion(+)

diff -r 5b43b64a40f9 -r b0aef7160eeb xen/arch/x86/domain.c
--- a/xen/arch/x86/domain.c     Wed Mar 24 11:19:55 2010 +0000
+++ b/xen/arch/x86/domain.c     Tue Mar 30 13:36:04 2010 +0100
@@ -1709,6 +1709,7 @@ static int relinquish_memory(
             break;
         case -EAGAIN:
         case -EINTR:
+            ret = -EAGAIN;
             page_list_add(page, list);
             set_bit(_PGT_pinned, &page->u.inuse.type_info);
             put_page(page);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.4-testing] x86: fix improper return value from relinquish_memory(), Xen patchbot-3.4-testing <=