genirq: Fix incorrect check for forced IRQ thread handler
authorAlexander Gordeev <agordeev@redhat.com>
Fri, 9 Mar 2012 13:59:13 +0000 (14:59 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 9 Mar 2012 16:19:08 +0000 (17:19 +0100)
We do not want a bitwise AND between boolean operands

Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Link: http://lkml.kernel.org/r/20120309135912.GA2114@dhcp-26-207.brq.redhat.com
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/manage.c

index a9a9dbe..c0730ad 100644 (file)
@@ -773,7 +773,7 @@ static int irq_thread(void *data)
                        struct irqaction *action);
        int wake;
 
-       if (force_irqthreads & test_bit(IRQTF_FORCED_THREAD,
+       if (force_irqthreads && test_bit(IRQTF_FORCED_THREAD,
                                        &action->thread_flags))
                handler_fn = irq_forced_thread_fn;
        else