]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Fix possible codec_dai->ops NULL pointer problems
authorBarry Song <21cnbao@gmail.com>
Fri, 16 Oct 2009 10:13:38 +0000 (18:13 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 19 Oct 2009 15:15:03 +0000 (16:15 +0100)
commitbcdf80fd553cf63590a6c36dd86ff40e7a415712
treec7ef2f01655efa27210cad623e2a0dd33c142598
parent227849b8a50baf5bc6f96c56ed2004068d22cea6
ASoC: Fix possible codec_dai->ops NULL pointer problems

Some codec DAIs like stac9766, wm9712, wm9713, ad1980 don't register themselves
then it loses to the chance to be given a null_dai_ops in snd_soc_register_dai
if they have no ops. When functions like soc_pcm_open, soc_pcm_hw_params etc.
access the ops field in these DAIs, panic will happen.

Signed-off-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c