All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix xc_domain_memory_increase_reservation return value
@ 2005-06-29  9:25 Xiaofeng Ling
  0 siblings, 0 replies; only message in thread
From: Xiaofeng Ling @ 2005-06-29  9:25 UTC (permalink / raw)
  To: xen-devel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-29  9:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-29  9:25 [PATCH] fix xc_domain_memory_increase_reservation return value Xiaofeng Ling

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.