diff options
| author | Russell King - ARM Linux <[email protected]> | 2011-01-03 22:30:44 +0000 |
|---|---|---|
| committer | Dan Williams <[email protected]> | 2011-01-04 19:16:10 -0800 |
| commit | 4440aacf3a171a0ab498feda58d100a320c5d9ff (patch) | |
| tree | 582fa3a2b9a99d2f36394e29d02ac001d72d2ff6 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | e8b5e11df3d02e7bbd85c025cc705a8e67746f73 (diff) | |
ARM: PL08x: fix array overflow in dma_set_runtime_config()
If maxburst was passed in as zero, we would overflow the burst_sizes[]
array. Fix this by checking for this condition, and defaulting to
single transfer 'bursts'.
Improve the readability of the loop using a for() loop rather than
a while() loop with the iterator initialized far from the loop.
Signed-off-by: Russell King <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions