From: Jan Beulich Date: Mon, 14 May 2012 10:06:09 +0000 (+0200) Subject: x86/irq: fix locking for c/s 24707:96987c324a4f debugging code X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c3ea8941686338c35ebf7e131378a6a5bcb1f33c;p=people%2Fvhanquez%2Fxen-unstable.git x86/irq: fix locking for c/s 24707:96987c324a4f debugging code Without this, dump_irqs() may try to acquire the lock the caller is currently holding. Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c index 425af20387..2fc676b716 100644 --- a/xen/arch/x86/irq.c +++ b/xen/arch/x86/irq.c @@ -668,6 +668,7 @@ void irq_move_cleanup_interrupt(struct cpu_user_regs *regs) { if ( unlikely(!test_bit(vector, desc->arch.used_vectors)) ) { + spin_unlock(&desc->lock); bitmap_scnlistprintf(keyhandler_scratch, sizeof(keyhandler_scratch), desc->arch.used_vectors->_bits,