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-devel

[Xen-devel] [PATCH]

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH]
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Fri, 20 Oct 2006 14:41:57 +0100
Delivery-date: Fri, 20 Oct 2006 12:32:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH], Jan Beulich <=