aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/amba
diff options
context:
space:
mode:
authorRussell King - ARM Linux <linux@arm.linux.org.uk>2011-01-03 22:30:44 +0000
committerDan Williams <dan.j.williams@intel.com>2011-01-04 19:16:10 -0800
commit4440aacf3a171a0ab498feda58d100a320c5d9ff (patch)
tree582fa3a2b9a99d2f36394e29d02ac001d72d2ff6 /include/linux/amba
parente8b5e11df3d02e7bbd85c025cc705a8e67746f73 (diff)
downloadkernel_samsung_smdk4412-4440aacf3a171a0ab498feda58d100a320c5d9ff.zip
kernel_samsung_smdk4412-4440aacf3a171a0ab498feda58d100a320c5d9ff.tar.gz
kernel_samsung_smdk4412-4440aacf3a171a0ab498feda58d100a320c5d9ff.tar.bz2
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 <rmk+kernel@arm.linux.org.uk> Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/amba')
0 files changed, 0 insertions, 0 deletions