All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xiaofeng Ling <xiaofeng.ling@intel.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] fix xc_domain_memory_increase_reservation return value
Date: Wed, 29 Jun 2005 17:25:57 +0800	[thread overview]
Message-ID: <42C26925.3030106@intel.com> (raw)

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 <xiaofeng.ling@intel.com>

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;
      }

                 reply	other threads:[~2005-06-29  9:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42C26925.3030106@intel.com \
    --to=xiaofeng.ling@intel.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.