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

[Xen-changelog] [xen-unstable] x86: fix improper return value from relinquish_memory()



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1269502809 0
# Node ID 12aebcebff2a32c4472767bfc1577cea797777de
# Parent  377433a77d7036b17751efc8183b73b73220bfea
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/arch/x86/domain.c |    1 +
 1 files changed, 1 insertion(+)

diff -r 377433a77d70 -r 12aebcebff2a xen/arch/x86/domain.c
--- a/xen/arch/x86/domain.c     Wed Mar 24 11:06:48 2010 +0000
+++ b/xen/arch/x86/domain.c     Thu Mar 25 07:40:09 2010 +0000
@@ -1808,6 +1808,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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.