[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] pass-through: drop lock before calling xfree() on error path
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1233314035 0 # Node ID e1135b40e783e965ed4eccfd8e983e9f3f4259e8 # Parent 102576868e8d2b4a7835c229bd3ff57dec4b96b0 pass-through: drop lock before calling xfree() on error path Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx> --- xen/drivers/passthrough/io.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 102576868e8d -r e1135b40e783 xen/drivers/passthrough/io.c --- a/xen/drivers/passthrough/io.c Fri Jan 30 11:13:32 2009 +0000 +++ b/xen/drivers/passthrough/io.c Fri Jan 30 11:13:55 2009 +0000 @@ -87,8 +87,8 @@ int pt_irq_create_bind_vtd( if ( domain_set_irq_dpci(d, hvm_irq_dpci) == 0 ) { + spin_unlock(&d->event_lock); xfree(hvm_irq_dpci); - spin_unlock(&d->event_lock); return -EINVAL; } } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |