All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ioemu: Slightly improve error check in xenstore_vm_write()
@ 2009-02-04  7:54 Yosuke Iwamatsu
  0 siblings, 0 replies; only message in thread
From: Yosuke Iwamatsu @ 2009-02-04  7:54 UTC (permalink / raw)
  To: xen-devel

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>

diff --git a/xenstore.c b/xenstore.c
index d30dafa..6bfcdbb 100644
--- a/xenstore.c
+++ b/xenstore.c
@@ -1224,6 +1224,8 @@ int xenstore_vm_write(int domid, const char *key, const char *value)
     int rc = -1;
 
     path = xenstore_vm_key_path(domid, key);
+    if (!path)
+        return 0;
 
     rc = xs_write(xsh, XBT_NULL, path, value, strlen(value));
     if (rc == 0) {

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

only message in thread, other threads:[~2009-02-04  7:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-04  7:54 [PATCH] ioemu: Slightly improve error check in xenstore_vm_write() Yosuke Iwamatsu

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.