Skip to contentSkip to conversation

Fix an Off-By-One Error in arch/ppc/syslib/ipic.c

PATCH New Randy Vinson 1 participant 1 message May 21, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix an Off-By-One Error in arch/ppc/syslib/ipic.c

Fix an off-by-one error in ipic_init.

There is an off-by-one error in the IPIC code that configures the external interrupts (Edge or Level Sensitive).

Signed-off-by Randy Vinson <[email protected]>

---
commit 0c92b569e09b94a1580cc5bae6efbdd749fec28a
tree 9c1e83adcec1bee0a700888546385444ef5f4000
parent 66e60f92518268f4d2a702a1c4ffbe1caacd6290
author Randy Vinson <rvinson@linuxbox.(none)> Fri, 20 May 2005 15:58:02 -0700 committer Randy Vinson <rvinson@linuxbox.(none)> Fri, 20 May 2005 15:58:02 -0700

arch/ppc/syslib/ipic.c | 2 +-

1 files changed, 1 insertion(+), 1 deletion(-)
arch/ppc/syslib/ipic.c (mode:100644) +1 -1
Index: arch/ppc/syslib/ipic.c
===================================================================
@@ -479,7 +479,7 @@
   temp = 0;
   for (i = 0 ; i < senses_count ; i++) {
       if ((senses[i] & IRQ_SENSE_MASK) == IRQ_SENSE_EDGE) {
-            temp |= 1 << (16 - i);
+            temp |= 1 << (15 - i);
           if (i != 0)
               irq_desc[i + irq_offset + MPC83xx_IRQ_EXT1 - 1].status = 0;
           else