ia64/xen-unstable

changeset 19141:e1135b40e783

pass-through: drop lock before calling xfree() on error path

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jan 30 11:13:55 2009 +0000 (2009-01-30)
parents 102576868e8d
children 9b9078a02f65
files xen/drivers/passthrough/io.c
line diff
     1.1 --- a/xen/drivers/passthrough/io.c	Fri Jan 30 11:13:32 2009 +0000
     1.2 +++ b/xen/drivers/passthrough/io.c	Fri Jan 30 11:13:55 2009 +0000
     1.3 @@ -87,8 +87,8 @@ int pt_irq_create_bind_vtd(
     1.4  
     1.5          if ( domain_set_irq_dpci(d, hvm_irq_dpci) == 0 )
     1.6          {
     1.7 +            spin_unlock(&d->event_lock);
     1.8              xfree(hvm_irq_dpci);
     1.9 -            spin_unlock(&d->event_lock);
    1.10              return -EINVAL;
    1.11          }
    1.12      }