aboutsummaryrefslogtreecommitdiff
path: root/fs/ocfs2/mmap.c
diff options
context:
space:
mode:
authorTony Lindgren2012-09-04 17:22:45 -0700
committerTony Lindgren2012-09-04 17:22:45 -0700
commite534e871a94ba2e3bfdf0edd3685eb805fc960d8 (patch)
treeddbfab0d7354bf6d26c78120bf2864f585f7fa49 /fs/ocfs2/mmap.c
parent4cbe5a555fa58a79b6ecbb6c531b8bab0650778d (diff)
ARM: OMAP4: Fix array size for irq_target_cpu
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 NR_IRQS is set to 16. Without this patch we're overwriting other data during the boot. Looks like a similar fix was posted by Benoit Cousson earlier as "ARM: OMAP2+: wakeupgen: Fix wrong array size for irq_target_cpu" but was lost. Cc: stable@vger.kernel.org Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'fs/ocfs2/mmap.c')
0 files changed, 0 insertions, 0 deletions