]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: fix ak4104 register array access
authorDaniel Mack <daniel@caiaq.de>
Fri, 26 Feb 2010 06:36:54 +0000 (14:36 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 16:06:22 +0000 (09:06 -0700)
commit682b7d6cf5e798e6603e27820ae72050b8ff5f97
tree66744c3c98d95caaf054a2cc41a29434d743bdbf
parentbe0be57d678a2734e552a1ceabbc02868c6c4e14
ASoC: fix ak4104 register array access

commit e555317c083fda01f516d2153589e82514e20e70 upstream.

Don't touch the variable 'reg' to construct the value for the actual SPI
transport. This variable is again used to access the driver's register
cache, and so random memory is overwritten.
Compute the value in-place instead.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/soc/codecs/ak4104.c