[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH]



Prevent use of uninitialized data when hypervisor was built without
ACM_SECURITY.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

Index: 2006-10-16/tools/python/xen/lowlevel/acm/acm.c
===================================================================
--- 2006-10-16.orig/tools/python/xen/lowlevel/acm/acm.c 2006-10-05 
08:47:27.000000000 +0200
+++ 2006-10-16/tools/python/xen/lowlevel/acm/acm.c      2006-10-20 
15:31:04.000000000 +0200
@@ -182,6 +182,8 @@ static PyObject *getdecision(PyObject * 
     if (xc_acm_op(xc_handle, ACMOP_getdecision, &getdecision, 
sizeof(getdecision)) < 0) {
         if (errno == EACCES)
             PERROR("ACM operation failed.");
+        xc_interface_close(xc_handle);
+        return NULL;
     }
 
     xc_interface_close(xc_handle);


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.