From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: [PATCH] Date: Fri, 20 Oct 2006 14:41:57 +0100 Message-ID: <4538EE45.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Prevent use of uninitialized data when hypervisor was built without ACM_SECURITY. Signed-off-by: Jan Beulich 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);