aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2011-01-11 06:24:02 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-01-11 13:27:08 -0500
commit04f8fd176c9c105dc0025486cfab9dc779288b3e (patch)
tree550e4d22e47a61e69abe327ad8bcf45d131a9dcd /sound
parentf4fd58d65e05850a80bba4ee3929e3b696fbc5eb (diff)
ASoC: soc-cache: Fix invalid memory access during snd_soc_lzo_cache_sync()
The size of the lzo syncing bitmap was incorrectly set to the size of the cache times the word size, however, the correct size is the size of the cache. Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c
index a9ebc078bea8..8c2a21a978ac 100644
--- a/sound/soc/soc-cache.c
+++ b/sound/soc/soc-cache.c
@@ -1361,7 +1361,7 @@ static int snd_soc_lzo_cache_init(struct snd_soc_codec *codec)
1361 goto err; 1361 goto err;
1362 } 1362 }
1363 lzo_blocks[i]->sync_bmp = sync_bmp; 1363 lzo_blocks[i]->sync_bmp = sync_bmp;
1364 lzo_blocks[i]->sync_bmp_nbits = reg_size; 1364 lzo_blocks[i]->sync_bmp_nbits = bmp_size;
1365 /* alloc the working space for the compressed block */ 1365 /* alloc the working space for the compressed block */
1366 ret = snd_soc_lzo_prepare(lzo_blocks[i]); 1366 ret = snd_soc_lzo_prepare(lzo_blocks[i]);
1367 if (ret < 0) 1367 if (ret < 0)