Re: [PATCH] ARM: OMAP4: Fix array size for irq_target_cpu

2012-09-05 Thread Benoit Cousson
Hi Tony, On 09/05/2012 02:03 AM, Tony Lindgren wrote: If NR_IRQS is less than MAX_IRQS, we end up writing past the irq_target_cpu array in omap_wakeupgen_init(): /* Associate all the IRQs to boot CPU like GIC init does. */ for (i = 0; i max_irqs; i++) irq_target_cpu[i] = boot_cpu;

Re: [PATCH] ARM: OMAP4: Fix array size for irq_target_cpu

2012-09-05 Thread Shilimkar, Santosh
On Wed, Sep 5, 2012 at 5:11 PM, Benoit Cousson b-cous...@ti.com wrote: Hi Tony, On 09/05/2012 02:03 AM, Tony Lindgren wrote: If NR_IRQS is less than MAX_IRQS, we end up writing past the irq_target_cpu array in omap_wakeupgen_init(): /* Associate all the IRQs to boot CPU like GIC init

Re: [PATCH] ARM: OMAP4: Fix array size for irq_target_cpu

2012-09-05 Thread Tony Lindgren
* Shilimkar, Santosh santosh.shilim...@ti.com [120905 06:17]: On Wed, Sep 5, 2012 at 5:11 PM, Benoit Cousson b-cous...@ti.com wrote: Hi Tony, On 09/05/2012 02:03 AM, Tony Lindgren wrote: If NR_IRQS is less than MAX_IRQS, we end up writing past the irq_target_cpu array in

[PATCH] ARM: OMAP4: Fix array size for irq_target_cpu

2012-09-04 Thread Tony Lindgren
If NR_IRQS is less than MAX_IRQS, we end up writing past the irq_target_cpu array in omap_wakeupgen_init(): /* Associate all the IRQs to boot CPU like GIC init does. */ for (i = 0; i max_irqs; i++) irq_target_cpu[i] = boot_cpu; This can happen if SPARSE_IRQ is enabled as by default

Re: [PATCH] ARM: OMAP4: Fix array size for irq_target_cpu

2012-09-04 Thread Shilimkar, Santosh
On Wed, Sep 5, 2012 at 5:33 AM, Tony Lindgren t...@atomide.com wrote: If NR_IRQS is less than MAX_IRQS, we end up writing past the irq_target_cpu array in omap_wakeupgen_init(): /* Associate all the IRQs to boot CPU like GIC init does. */ for (i = 0; i max_irqs; i++)