Skip to content

Commit

Permalink
genirq: Fix incorrect check for forced IRQ thread handler
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Gordeev authored and Thomas Gleixner committed Mar 9, 2012
1 parent b2a0017 commit 540b60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/irq/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 540b60e

Please sign in to comment.