From: "Jan Beulich" Subject: Re: [PATCH RFC v12 04/21] pvh prep: code motion Date: Wed, 18 Sep 2013 13:59:48 +0100 Message-ID: <5239BFE402000078000F45AC@nat28.tlf.novell.com> References: <1379089521-25720-1-git-send-email-george.dunlap@eu.citrix.com> <1379089521-25720-5-git-send-email-george.dunlap@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VMHMI-0003us-8N for xen-devel@lists.xenproject.org; Wed, 18 Sep 2013 12:59:54 +0000 In-Reply-To: <1379089521-25720-5-git-send-email-george.dunlap@eu.citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: xen-devel , Keir Fraser , Tim Deegan List-Id: xen-devel@lists.xenproject.org >>> On 13.09.13 at 18:25, George Dunlap wrote: > @@ -1143,14 +1145,17 @@ int hvm_vcpu_initialise(struct vcpu *v) > > return 0; > > + fail6: > + nestedhvm_vcpu_destroy(v); > fail5: > - free_compat_arg_xlat(v); > + vlapic_destroy(v); > fail4: > - nestedhvm_vcpu_destroy(v); > + free_compat_arg_xlat(v); > fail3: > + tasklet_kill(&v->arch.hvm_vcpu.assert_evtchn_irq_tasklet); While everything else here looks fine, this call seems pretty pointless for a tasklet that was merely initialized (i.e. just the pointed to structure filled suitably), but never used for anything. Jan > hvm_funcs.vcpu_destroy(v); > fail2: > - vlapic_destroy(v); > + hvm_vcpu_cacheattr_destroy(v); > fail1: > return rc; > } > -- > 1.7.9.5 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel