Skip to contentSkip to conversation

[PATCH]

PATCH New Jan Beulich 1 participant 1 message Oct 20, 2006 Arm/actions semi architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 [PATCH]

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

tools/python/xen/lowlevel/acm/acm.c +2 -0
Index: 2006-10-16/tools/python/xen/lowlevel/acm/acm.c
===================================================================
@@ -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);