]> xenbits.xensource.com Git - xen.git/commitdiff
x86/HVM: fix failure path in hvm_vcpu_initialise
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Wed, 18 Sep 2013 12:45:24 +0000 (14:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 Sep 2013 12:45:24 +0000 (14:45 +0200)
It looks like one of the failure cases in hvm_vcpu_initialise jumps to
the wrong label; this could lead to slow leaks if something isn't
cleaned up properly.

I will probably change these labels in a future patch, but I figured
it was better to have this fix separately.

This is also a candidate for backport.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
xen/arch/x86/hvm/hvm.c

index 8fd218e2f79fcda01be863494905b55532c54038..72031846db0bca1c0e9ab5469d47f45144c81acc 100644 (file)
@@ -1118,7 +1118,7 @@ int hvm_vcpu_initialise(struct vcpu *v)
         /* Create bufioreq event channel. */
         rc = alloc_unbound_xen_event_channel(v, dm_domid, NULL);
         if ( rc < 0 )
-            goto fail2;
+            goto fail4;
         d->arch.hvm_domain.params[HVM_PARAM_BUFIOREQ_EVTCHN] = rc;
     }