debuggers.hg

changeset 21107:12aebcebff2a

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>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Mar 25 07:40:09 2010 +0000 (2010-03-25)
parents 377433a77d70
children eb7812d0d610
files xen/arch/x86/domain.c
line diff
     1.1 --- a/xen/arch/x86/domain.c	Wed Mar 24 11:06:48 2010 +0000
     1.2 +++ b/xen/arch/x86/domain.c	Thu Mar 25 07:40:09 2010 +0000
     1.3 @@ -1808,6 +1808,7 @@ static int relinquish_memory(
     1.4              break;
     1.5          case -EAGAIN:
     1.6          case -EINTR:
     1.7 +            ret = -EAGAIN;
     1.8              page_list_add(page, list);
     1.9              set_bit(_PGT_pinned, &page->u.inuse.type_info);
    1.10              put_page(page);