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/
Home Products Support Community News


[Xen-changelog] [xen-unstable] xenpaging: close xch handle in xenpaging_

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xenpaging: close xch handle in xenpaging_init error path
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Dec 2010 05:34:09 -0800
Delivery-date: Thu, 23 Dec 2010 05:40:00 -0800
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1292352430 0
# Node ID e66d893d3f7e2e8aba7b6d233291e999c439ee60
# Parent  5e443a99b1ffee5112ad3d06d622c8b44d74fab1
xenpaging: close xch handle in xenpaging_init error path

Just for correctness, close the xch handle in the error path.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
 tools/xenpaging/xenpaging.c |    1 +
 1 files changed, 1 insertion(+)

diff -r 5e443a99b1ff -r e66d893d3f7e tools/xenpaging/xenpaging.c
--- a/tools/xenpaging/xenpaging.c       Tue Dec 14 17:38:18 2010 +0000
+++ b/tools/xenpaging/xenpaging.c       Tue Dec 14 18:47:10 2010 +0000
@@ -224,6 +224,7 @@ xenpaging_t *xenpaging_init(xc_interface
     if ( paging )
+        xc_interface_close(xch);
         if ( paging->mem_event.shared_page )
             munlock(paging->mem_event.shared_page, PAGE_SIZE);

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xenpaging: close xch handle in xenpaging_init error path, Xen patchbot-unstable <=