genirq: fix wrong bit operation
PATCH 1/1 genirq: fix wrong bit operation
From: Jonghwan Choi <[email protected]>
Signed-off-by Jonghwan Choi <[email protected]>
--- kernel/irq/generic-chip.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
kernel/irq/generic-chip.c +2 -2
@@ -246,7 +246,7 @@ void irq_setup_generic_chip(struct irq_chip_generic *gc, u32 msk, gc->mask_cache =irq_reg_readl (gc->reg_base + ct->regs.mask);for (i = gc->irq_base; msk; msk >>=1 , i++) { -if (!msk &0x01 ) +if (!(msk &0x01 ))continue ;if (flags &IRQ_GC_INIT_NESTED_LOCK )
@@ -301,7 +301,7 @@ void irq_remove_generic_chip(struct irq_chip_generic *gc, u32 msk,raw_spin_unlock (&gc_lock);for (; msk; msk >>=1 , i++) { -if (!msk &0x01 ) +if (!(msk &0x01 ))continue ;/* Remove handler first. That will mask the irq line */
Signature · 1 line
1.7.0
[tip:irq/urgent] genirq: Fix wrong bit operation
Commit-ID: 1dd75f91ae713049eb6baaa640078f3a6549e522 Gitweb: http://git.kernel.org/tip/1dd75f91ae713049eb6baaa640078f3a6549e522 Author: [email protected] <[email protected]> AuthorDate: Thu, 21 Jul 2011 15:29:14 +0900 Committer: Thomas Gleixner <[email protected]> CommitDate: Tue, 26 Jul 2011 16:24:02 +0200
genirq: Fix wrong bit operation
(!msk & 0x01) should be !(msk & 0x01)
Signed-off-by Jonghwan Choi <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
--- kernel/irq/generic-chip.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
kernel/irq/generic-chip.c +2 -2
@@ -246,7 +246,7 @@ void irq_setup_generic_chip(struct irq_chip_generic *gc, u32 msk, gc->mask_cache =irq_reg_readl (gc->reg_base + ct->regs.mask);for (i = gc->irq_base; msk; msk >>=1 , i++) { -if (!msk &0x01 ) +if (!(msk &0x01 ))continue ;if (flags &IRQ_GC_INIT_NESTED_LOCK )
@@ -301,7 +301,7 @@ void irq_remove_generic_chip(struct irq_chip_generic *gc, u32 msk,raw_spin_unlock (&gc_lock);for (; msk; msk >>=1 , i++) { -if (!msk &0x01 ) +if (!(msk &0x01 ))continue ;/* Remove handler first. That will mask the irq line */