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

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



# 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


 


Rackspace

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