From: Jeffrey Deans Date: Thu, 17 Jul 2014 08:20:56 +0000 (+0100) Subject: MIPS: GIC: Prevent array overrun X-Git-Tag: omap-for-v3.17/fixes-against-rc2~135^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffc8415afab20bd97754efae6aad1f67b531132b;p=pandora-kernel.git MIPS: GIC: Prevent array overrun A GIC interrupt which is declared as having a GIC_MAP_TO_NMI_MSK mapping causes the cpu parameter to gic_setup_intr() to be increased to 32, causing memory corruption when pcpu_masks[] is written to again later in the function. Signed-off-by: Jeffrey Deans Signed-off-by: Markos Chandras Cc: stable@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7375/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed