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-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8474 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=98e10364bde098e12104caa4f566b17d05f8b791;p=xen.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,