[PATCH 3/5] ARM: OMAP2+: wakeupgen: Fix wrong array size for irq_target_cpu
Shilimkar, Santosh
santosh.shilimkar at ti.com
Fri Feb 24 01:21:57 EST 2012
On Fri, Feb 24, 2012 at 3:53 AM, Benoit Cousson <b-cousson at ti.com> wrote:
> The wakeupgen was wrongly allocating an array based on the
> NR_IRQS value (410 on OMAP4) whereas it is just capable of handling 128
> entries.
> Moreover with SPARSE_IRQ, the NR_IRQS number might be 16, and thus
> cannot handle the proper number of entries. It will generate an oops as
> soon a driver will request an IRQ > 16.
>
> Allocate the array using the fixed MAX_IRQS value (128).
>
> Signed-off-by: Benoit Cousson <b-cousson at ti.com>
> Cc: Santosh Shilimkar <santosh.shilimkar at ti.com>
> ---
> arch/arm/mach-omap2/omap-wakeupgen.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
Right.
Acked-by: Santosh Shilimkar <santosh.shilimkar at ti.com>
More information about the linux-arm-kernel
mailing list