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

[Xen-changelog] [PATCH] missing put_domain in DOM0_IOPORT_PERMISSION

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [PATCH] missing put_domain in DOM0_IOPORT_PERMISSION
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Fri, 03 Jun 2005 21:42:25 +0000
Delivery-date: Fri, 03 Jun 2005 22:02:15 +0000
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1668, 2005/06/03 22:42:25+01:00, iap10@xxxxxxxxxxxxxxxxxxxxx

        [PATCH] missing put_domain in DOM0_IOPORT_PERMISSION
        
        There appears to be a missing put_domain() in the failure case. The code
        doesn't seem to be used by anyone, but anyway...
        
        Signed-off-by: John Levon <levon@xxxxxxxxxxxxxxxxx>
        Signed-off-by: ian@xxxxxxxxxxxxx



 dom0_ops.c |    3 +++
 1 files changed, 3 insertions(+)


diff -Nru a/xen/arch/x86/dom0_ops.c b/xen/arch/x86/dom0_ops.c
--- a/xen/arch/x86/dom0_ops.c   2005-06-03 18:03:10 -04:00
+++ b/xen/arch/x86/dom0_ops.c   2005-06-03 18:03:10 -04:00
@@ -155,7 +155,10 @@
         {
             if ( (d->arch.iobmp_mask = xmalloc_array(
                 u8, IOBMP_BYTES)) == NULL )
+            {
+                put_domain(d);
                 break;
+            }
             memset(d->arch.iobmp_mask, 0xFF, IOBMP_BYTES);
         }
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [PATCH] missing put_domain in DOM0_IOPORT_PERMISSION, BitKeeper Bot <=