WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Allow xc_domain_info_t to be optional in xc_domain_getfu

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Allow xc_domain_info_t to be optional in xc_domain_getfullinfo
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Mon, 18 Apr 2005 21:53:33 +0000
Delivery-date: Tue, 19 Apr 2005 01:08:28 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1837, 2005/04/18 22:53:33+01:00, iap10@xxxxxxxxxxxxxxxxxxxxx

        Allow xc_domain_info_t to be optional in xc_domain_getfullinfo
        From: Kip Macy
        Signed-off-by: ian@xxxxxxxxxxxxx



 xc_domain.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


diff -Nru a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c   2005-04-18 21:08:45 -04:00
+++ b/tools/libxc/xc_domain.c   2005-04-18 21:08:45 -04:00
@@ -132,7 +132,8 @@
 
     rc = do_dom0_op(xc_handle, &op);
 
-    memcpy(info, &op.u.getdomaininfo, sizeof(*info));
+    if ( info )
+        memcpy(info, &op.u.getdomaininfo, sizeof(*info));
 
     if ( ((u16)op.u.getdomaininfo.domain != domid) && rc > 0 )
         return -ESRCH;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>