From: Martyn Welch Date: Tue, 29 Nov 2011 13:28:05 +0000 (+0000) Subject: Staging: VME: PIO2: Correct irq reset X-Git-Tag: v3.3-rc1~152^2~101^2~146 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1fcc4c9bd50d2d29bfaeb888af7de246343235d;p=pandora-kernel.git Staging: VME: PIO2: Correct irq reset The loop used to reset the interrupt masks has faulty logic. There are 4 banks of 8 I/O, however each mask is comprised of 2 bits and thus there are 8 sets of registers to clear. Driver was wrongly equating this with 8 banks leading to a us writing past the end of the "bank" array (used to store mask configuration as these registers are write only) and thus causing memory corruption. Clear both registers of masks for each bank and half iterations. Reported-by: Dan Carpenter Signed-off-by: Martyn Welch Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed