ASoC: soc-cache: Fix memory overflow in LZO initialization
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Mon, 29 Nov 2010 11:43:33 +0000 (11:43 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 30 Nov 2010 12:51:51 +0000 (12:51 +0000)
commit09c74a9d0b0bedff16d0881db8cc0054a5e34f47
tree0020dcbe3ddbeefb3540ba1571075a5783d33da7
parentdfa7c70b04bb20df7936018c737014655bf92d09
ASoC: soc-cache: Fix memory overflow in LZO initialization

The bitmap_zero() nbits argument was improperly set to reg_size
but the underlying buffer was bmp_size long.  This caused the memset
to zero past the end of the allocated buffer and into the kernel heap
causing strange kernel crashes sometimes by overwriting critical
kernel structures.

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>
sound/soc/soc-cache.c