From: "Jan Beulich" Subject: [PATCH] pass-through: drop lock before calling xfree() on error path Date: Fri, 30 Jan 2009 10:52:55 +0000 Message-ID: <4982EA17.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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 Signed-off-by: Jan Beulich --- 2009-01-27.orig/xen/drivers/passthrough/io.c 2009-01-21 = 15:16:31.000000000 +0100 +++ 2009-01-27/xen/drivers/passthrough/io.c 2009-01-30 08:59:27.0000000= 00 +0100 @@ -87,8 +87,8 @@ int pt_irq_create_bind_vtd( =20 if ( domain_set_irq_dpci(d, hvm_irq_dpci) =3D=3D 0 ) { - xfree(hvm_irq_dpci); spin_unlock(&d->event_lock); + xfree(hvm_irq_dpci); return -EINVAL; } }