From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiaofeng Ling Subject: [PATCH] fix xc_domain_memory_increase_reservation return value Date: Wed, 29 Jun 2005 17:25:57 +0800 Message-ID: <42C26925.3030106@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org in xc_domain_memory_increase_reservation, when do_dom_mem_op return 0, it shall also return -1,I met this problem when I try to allocate domain memory. Signed-off-by: Xiaofeng Ling diff -Nru a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c --- a/tools/libxc/xc_domain.c 2005-06-29 17:16:11 +08:00 +++ b/tools/libxc/xc_domain.c 2005-06-29 17:16:11 +08:00 @@ -243,7 +243,7 @@ if (err == mem_kb / 4) return 0; - if (err > 0) { + if (err >= 0) { errno = ENOMEM; err = -1; }