alistair23-linux/drivers/staging/vme
Martyn Welch c1fcc4c9bd 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 <dan.carpenter@oracle.com>
Signed-off-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-30 19:37:33 +09:00
..
boards
bridges staging: vme: fix address cast warnings for 64 bit architectures 2011-11-26 17:23:57 -08:00
devices Staging: VME: PIO2: Correct irq reset 2011-11-30 19:37:33 +09:00
Kconfig
Makefile
TODO Staging: VME: Update TODO file 2011-11-26 17:23:57 -08:00
vme.c staging: vme: remove vme_add_bus() and vme_remove_bus() 2011-11-26 17:25:38 -08:00
vme.h staging: vme: fix comment for struct vme_dev 2011-11-26 17:25:38 -08:00
vme_api.txt staging: vme: get rid of struct vme_device_id and slots 2011-10-17 15:43:13 -07:00
vme_bridge.h staging: vme: make match() driver specific to improve non-VME64x support 2011-10-17 15:43:13 -07:00