diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-03-25 07:40:09 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-03-25 07:40:09 +0000 |
commit | e96781896f22c049c74c32f521ab45414aa03ae5 (patch) | |
tree | 94cdb187e9e050218d08ceb24f0a00e74259bf64 | |
parent | 13e06c39087d32d6bc592cb30059828fc4257f8f (diff) | |
download | xen-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.c | 1 |
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); |