]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: CX20442: fix NULL pointer dereference
authorJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Tue, 1 Feb 2011 12:01:17 +0000 (13:01 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 1 Feb 2011 14:13:56 +0000 (14:13 +0000)
commitd8c28ca3964855d57e56e95f8b2ab477d0f64491
tree477fffe9007cdabc7052e46354166867fb18ccaf
parenta176fc91ea5e39b90dd2d12b7c14e78f52f59946
ASoC: CX20442: fix NULL pointer dereference

The CX20442 codec driver never provided the snd_soc_codec_driver's
.reg_cache_default member. With the latest ASoC framework changes, it
seems to be referred unconditionally, resulting in a NULL pointer
dereference if missing. Provide it.

Created and tested on Amstrad Delta against linux-2.6.38-rc2

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/cx20442.c