aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-03-25 07:40:09 +0000
committerKeir Fraser <keir.fraser@citrix.com>2010-03-25 07:40:09 +0000
commite96781896f22c049c74c32f521ab45414aa03ae5 (patch)
tree94cdb187e9e050218d08ceb24f0a00e74259bf64
parent13e06c39087d32d6bc592cb30059828fc4257f8f (diff)
downloadxen-e96781896f22c049c74c32f521ab45414aa03ae5.tar.gz
xen-e96781896f22c049c74c32f521ab45414aa03ae5.tar.bz2
xen-e96781896f22c049c74c32f521ab45414aa03ae5.zip
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@novell.com>
-rw-r--r--xen/arch/x86/domain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c
index 17f5c83c75..6321e56bfb 100644
--- a/xen/arch/x86/domain.c
+++ b/xen/arch/x86/domain.c
@@ -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);