]> xenbits.xensource.com Git - people/vhanquez/xen-unstable.git/commitdiff
x86/irq: fix locking for c/s 24707:96987c324a4f debugging code
authorJan Beulich <jbeulich@suse.com>
Mon, 14 May 2012 10:06:09 +0000 (12:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 14 May 2012 10:06:09 +0000 (12:06 +0200)
Without this, dump_irqs() may try to acquire the lock the caller is
currently holding.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/irq.c

index 425af2038705e5807e519943bf8c64bb88c61852..2fc676b716a17db45efbc704f492eb1da4a808d8 100644 (file)
@@ -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,