diff options
| author | Martyn Welch <[email protected]> | 2011-11-29 13:28:05 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2011-11-30 19:37:33 +0900 |
| commit | c1fcc4c9bd50d2d29bfaeb888af7de246343235d (patch) | |
| tree | 0dc3c03caf3ba91f49802d13977b1bae309cef3d /tools/perf/scripts/python | |
| parent | 6d3ff1cc99eb869af040e34c0bbe3035cc5c203b (diff) | |
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 <[email protected]>
Signed-off-by: Martyn Welch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions