xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remus: libcheckpoint - initialize unused callback fields to NULL
@ 2012-02-10  1:45 rshriram
  2012-02-20 18:34 ` Ian Jackson
  0 siblings, 1 reply; 2+ messages in thread
From: rshriram @ 2012-02-10  1:45 UTC (permalink / raw)
  To: xen-devel; +Cc: ian.jackson

# HG changeset patch
# User Shriram Rajagopalan <rshriram@cs.ubc.ca>
# Date 1328838305 28800
# Node ID ae36ea00a09cebdc5a0e08cb28d877dcfc077485
# Parent  7cbe8d029c59d5ff44bafe8065fef07b6cd0126b
remus: libcheckpoint - initialize unused callback fields to NULL

Add a memset to the save_callbacks struct instance in libcheckpoint's
initialization code. New additions to the callback struct will not
need to add an explicit initialization (to NULL), to maintain
compatibility with older xend/remus based invocation of xc_domain_save.

Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca>

diff --git a/tools/python/xen/lowlevel/checkpoint/checkpoint.c b/tools/python/xen/lowlevel/checkpoint/checkpoint.c
--- a/tools/python/xen/lowlevel/checkpoint/checkpoint.c
+++ b/tools/python/xen/lowlevel/checkpoint/checkpoint.c
@@ -155,6 +155,7 @@ static PyObject* pycheckpoint_start(PyOb
   } else
     self->checkpoint_cb = NULL;
 
+  memset(&callbacks, 0, sizeof(callbacks));
   callbacks.suspend = suspend_trampoline;
   callbacks.postcopy = postcopy_trampoline;
   callbacks.checkpoint = checkpoint_trampoline;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] remus: libcheckpoint - initialize unused callback fields to NULL
  2012-02-10  1:45 [PATCH] remus: libcheckpoint - initialize unused callback fields to NULL rshriram
@ 2012-02-20 18:34 ` Ian Jackson
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Jackson @ 2012-02-20 18:34 UTC (permalink / raw)
  To: rshriram; +Cc: xen-devel

rshriram@cs.ubc.ca writes ("[Xen-devel] [PATCH] remus: libcheckpoint - initialize unused callback fields to	NULL"):
> remus: libcheckpoint - initialize unused callback fields to NULL

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-20 18:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-10  1:45 [PATCH] remus: libcheckpoint - initialize unused callback fields to NULL rshriram
2012-02-20 18:34 ` Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).