2.4.36-stable kernel tree
リビジョン | 9c99598b7afdf19504daa9fac9f7d296726c3791 (tree) |
---|---|
日時 | 2006-11-26 06:45:04 |
作者 | Willy Tarreau <w@1wt....> |
コミッター | Willy Tarreau |
[PATCH] arm: incorrect use of "&&" instead of "&"
In integrator_init_irq(), the use of "&&" in the following
statement causes all interrupts to be marked valid regardless
of INTEGRATOR_SC_VALID_INT, as long as it's non-zero :
Obvious fix is to replace it with "&". This was already fixed
in 2.6.
Signed-off-by: Willy Tarreau <w@1wt.eu>
Acked-by: Russell King <rmk+lkml@arm.linux.org.uk>
@@ -55,7 +55,7 @@ void __init integrator_init_irq(void) | ||
55 | 55 | unsigned int i; |
56 | 56 | |
57 | 57 | for (i = 0; i < NR_IRQS; i++) { |
58 | - if (((1 << i) && INTEGRATOR_SC_VALID_INT) != 0) { | |
58 | + if (((1 << i) & INTEGRATOR_SC_VALID_INT) != 0) { | |
59 | 59 | irq_desc[i].valid = 1; |
60 | 60 | irq_desc[i].probe_ok = 1; |
61 | 61 | irq_desc[i].mask_ack = sc_mask_irq; |